服务器之间添加公钥

先使用

ssh-keygen -t rsa -C "[email protected]" 生成 

再把/root/.ssh/id_rsa.pub 中的内容复制到 另一个服务器的
/root/.ssh/authorized_keys
即可

猜你喜欢

转载自www.cnblogs.com/shenzhi/p/12028482.html