續 : http://ssorc.tw/?p=44

執行

ssh-copy-id -i ~/.ssh/id_dsa.pub  10.10.10.135

輸入密碼

21
root@10.10.10.135’s password:
Now try logging into the machine, with “ssh ‘10.10.10.135’”, and check in:

.ssh/authorized_keys

to make sure we haven’t added extra keys that you weren’t expecting.

public key 就會附加在 ~/.ssh/authorized_keys 底下了

Related posts 相關文章
架設 VPN 服務 – WireGuard – 主打比 IPSec、OpenVPN 更快、安全
More...
ssh 到裝有 cygwin openssh 的 windows 主機卻出現 no kex alg 錯誤
More...
透過 SSH Tunnel 從 A SSH 連到 B
More...
瀏覽器設定 proxy 透過 SSH Tunnel 連線網站
More...

作者

留言

撰寫回覆或留言

發佈留言必須填寫的電子郵件地址不會公開。