linux SSH相互访问

linux的SSH相互访问

A为192.168.1.86 B为192.168.1.84
在B中执行ssh-keygen -t rsa -C "[email protected]"
将B中的公钥拷贝到A的authorized_key中
ssh-copy-id -i ~/.ssh/id_rsa.pub [email protected]

ssh 192.168.1.86 不用输入密码访问即可

参考链接
https://www.jianshu.com/p/47758a04a1c9

猜你喜欢

转载自blog.csdn.net/jackliuy/article/details/83663444
今日推荐