以xxx用户为例: ssh-keygen 执行 ssh-copy-id -i ~/.ssh/id_rsa.pub xxx@192.168.1.1 然后输入密码即可。 ssh xxx@192.168.1.1 不输入密码即可登录。