In doing Linux configuration of SSH mutual trust should be noted that some things, such as whether there is in each machine a user name of mutual trust, and mutual trust step is performed as follows avoid some landing on some machines do not need a password, in turn, Gordon needs to password problems.
First, each generating a key need to establish mutual trust on the machine, the command is
ssh-keygen -t rsa -P ''
Then make sure the key on each machine are generated, the public will use them, and then generate the time you will be prompted, pressing down like the prompts, then pay attention to the key store file path.
For example, there are machines:
192.168.9.1 、 192.168.9.2 、192.168.9.3
So we operate on the 192.168.9.1 machine
The following commands are input
ssh 192.168.9.1 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
ssh 192.168.9.2 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
ssh 192.168.9.3 cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
Then again authorized_keys file in the machine 192.168.9.1 the permission settings
chmod 600 /root/.ssh/authorized_keys
Authorized_keys on the machine and then distributed to the other two 192.168.9.1 machines, respectively, using the command scp
scp /root/.ssh/authorized_keys 192.168.9.2:/root/.ssh/
scp /root/.ssh/authorized_keys 192.168.9.3:/root/.ssh/
Then test whether the establishment of mutual trust between the next three machines.