執行
ssh-copy-id -i ~/.ssh/id_dsa.pub 10.10.10.135
輸入密碼
21
[email protected]’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 底下了
留言