Ssh server-free dense Login

1. Log in to any node home directory, create a public-private key has

Execute: ssh-keygen

           cd ~/.ssh

           ls 

           

 

2, upload the public key to the login node needs to avoid close

       

              For example: 172.16.154.10 172.16.154.13, etc., root user

ssh-copy-id -i ~/.ssh/id_rsa.pub [email protected]

ssh-copy-id -i ~/.ssh/id_rsa.pub [email protected]

 

3, test-free dense Login

ssh [email protected]

ssh [email protected]

Successful login, indicating ok, generally will not go wrong.

 

Guess you like

Origin www.cnblogs.com/happyniqiu/p/12532177.html