Linux uses ssh password-free remote login to another machine. 1. Use the ssh-keygen command under your own machine (master) to create a public key, if you use ssh-keygen-t rsa to create an rsa file, the program will ask you about the directory to store. If you do not need to modify it, press enter several times. 2 ~ /. Copy the id_rsa.pub file in the ssh directory to the server (controlled end) You want to log on ~ /. Ssh directory, and then run the following command to import the public key ~ /. Ssh/authorized_keys: cat ~ /. Ssh/id_rsa.pub> ~ /. Ssh/authorized_keys # execute the command on the logged-in side. 3. Set the permission on the logged-in side :~ /. Set the ssh permission to 700 ~ /. Set the ssh/authorized_keys permission to 600, which is a security requirement for linux. If the permission is incorrect, automatic logon will not take effect. 4. log out of the server and then use ssh to log on, you will find that the server will not ask you for the password again. 5. Because it is very troublesome to copy files, the following provides more convenient methods to run on the master terminal: a. Run: ssh-keygen-t rsa B, and then press enter (default) c. Run: ssh-copy-id-I/root /. ssh/id_rsa.pub root@192.168.1.13 d, enter the password of the controlled end, you can. At this time, if the control end accesses the control end in turn, it also needs to lose the password.