ssh免密: ssh localhost 1,验证自己是否免密 2,被动生成了 /root/.ssh
ssh-keygen -t rsa -P ‘’ -f ~/.ssh/id_rsa
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
如果A 想 免密登录到B:
A:
ssh-keygen -t rsa -P ‘’ -f ~/.ssh/id_rsa
B:
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
结论: B包含了A的公钥,A就可以免密的登录
虚拟机ssh免密
最新推荐文章于 2023-09-04 11:03:02 发布