在云服务器端口输入ssh-copy-id user@remote_server_ip后提示Source of key(s) to be installed: "/root/.ssh/id_rsa.pub;attempting to log in with the new key(s), to filter out any that are already installed;1 key(s) remain to be installed -- if you are prompted now it is to install the new keys 且还需要输入云服务器密码
时间: 2023-06-16 09:02:29 浏览: 205
这是正常的操作流程,ssh-copy-id命令会将你本地的公钥文件(默认为/root/.ssh/id_rsa.pub)复制到远程服务器的~/.ssh/authorized_keys文件中,来实现免密码登录。在第一次执行这个命令时,需要输入远程服务器的用户密码进行验证。如果你在执行ssh-copy-id命令后被提示输入密码,那么你应该输入远程服务器的用户密码即可。如果你已经成功地将公钥复制到了远程服务器中,那么下次登录时就不需要再输入密码了。
阅读全文