SSH password-less remote host login method: generate a public/private key pair on the client, save the private key file on the client, and then upload the public key file to the server (remote host) 1. Generate a public/private key pair on the client cb @ cbloud # ssh-keygen... cb @ cbbench # ls. ssh/id_rsa id_rsa.pub // id_rsa is the private key by default, id_rsa.pub is the public key. 2. Upload the public key file to the remote host. cb @ cbw.# scp ~ /. Ssh/id_rsa.pub cb @ cb48:/home/cb /. ssh3. log on to the remote host and write the client's public key to the authorized_keys file cb @ cbloud # ssh cb @ cb48password: ***** cb @ cb48 # cd. ssh/cb @ cb48 # cat id_rsa.pub> authorized_keys4, complete. log on to the remote host cb @ cb133 # ssh cb @ cb48cb @ cb48 # // no password prompt on the client side, directly log on to the console. 5. Two-way logon without a password: use the remote host as the client and the original client as the remote host. Repeat steps 1 ~ 4. You can log on to two machines through ssh without a password. 6. log on to multiple remote hosts from one client. Repeat Step 2 ~ 3. Upload the client's public key file to multiple remote hosts and write it to the authorized_keys file on the remote host.