云服务器之间ssh免密登陆

1.获取公钥和私钥

ssh-keygen 而后一直回车便可ssh

2.用ssh-copy-id将公钥复制到远程机器中

ssh-copy-id -i .ssh/id_rsa.pub 用户名字@192.168.x.xxxcode

相关文章
相关标签/搜索