CentOS之——集群SSH无密码登录(单点对多点)

前端之家收集整理的这篇文章主要介绍了CentOS之——集群SSH无密码登录(单点对多点)前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

转载请注明出处:http://blog.csdn.net/l1028386804/article/details/79399463

假设源主机需要对主机名为node1、node2、node3的目标节点在用户名test下进行无密码访问,则需要一次输入如下命令:

ssh-keygen
ssh-copy-id test@node1
ssh-copy-id test@node2
ssh-copy-id test@node3

或者
ssh-keygen -t rsa
ssh-copy-id test@node1
ssh-copy-id test@node2
ssh-copy-id test@node3

或者
ssh-keygen -t dsa
ssh-copy-id test@node1
ssh-copy-id test@node2
ssh-copy-id test@node3
原文链接:https://www.f2er.com/centos/374671.html

猜你在找的CentOS相关文章