SSH 免密码

1、在A 机器生成证书

ssh-keygen -t rsa

 2、获取刚刚生成证书公钥

cat ~/.ssh/id_rsa.pub

 3、在B 机器的authorized_keys中添加A的证书

vim ~/.ssh/authorized_keys

 实现A无秘登陆B机器。

猜你喜欢

转载自looksgood.iteye.com/blog/1923531