linux ssh mutual password login

1. Modify the name of each machine in the cluster
vim /etc/sysconfig/network NETWORKING
=yes
HOSTNAME=server01 2. Modify

hosts, machine name and IP address mapping 3. Execute the following command on each host in the cluster and press Enter all the way to generate the local rsa key ssh-keygen -t rsa 4. Copy your own public key to the Master machine in the cluster ssh-copy -id root@server01 View cat ~/.ssh/authorized_keys on the host 5. Copy the authorized_keys of the Master to each machine scp ~/.ssh/authorized_keys root@server02:~/.ssh/ 6. ssh server02 test


















Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326300183&siteId=291194637