linux VM间配置ssh免密互信

一、域名映射配置(所有节点):


[root@centos60 jvm]# vi /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
 
192.168.56.60 centos60
192.168.56.62 centos62
192.168.56.64 centos64

 二、ssh免密通信(主节点执行):

sudo yum install ssh
ssh-keygen -t rsa
ssh-copy-id centos60
ssh-copy-id centos62
ssh-copy-id centos64

 

你可能感兴趣的:(linux,ssh,免密互信)