首页 > 代码库 > linux命令笔记

linux命令笔记

3步实现ssh login不用密码

1 ssh-keygen  (Create public and private keys)

ssh-copy-id -i ~/.ssh/id_rsa.pub remote-host    (Copy the public key to remote-host)

ssh remote-host    (不用密码了)