两台linux系统A B
如果A要登陆到B
1、生成A的密钥对
2、将A的公钥拷贝到B的authorized_keys中即可
可以使用命令:ssh-copy-id -i ~/.ssh/id_rsa.pub root@192.168.81.2
参考文章
linux ssh免密登陆
原文:https://www.cnblogs.com/lfxiao/p/9875345.html