1. In the tool bar of the client xftp> key generation parameters, the session window is displayed. in key type, select RSA
2. Keep next until you add the key name in the window. You can take the name as needed, and then enter the password.
3. On the last page, click Save to a local file named id_rsa_1024.pub.
3. Upload the *. Pub file to the server ~ /. Ssh/directory
4. Convert the pub file to the authorized_keys file recognized by SSH using the name line.
Root @ DALY-Virtual-machine :~ /. Ssh # Cat id_rsa_1024.pub> authorized_keys
5. Modify
RSAAuthentication yesPubkeyAuthentication yesAuthorizedKeysFile~/.ssh/authorized_keys
6. Modify the. Ssh directory permission to 700.
Root @ DALY-Virtual-machine :~ /. Ssh # chmod 600 ~ /. SSH
7. Change authorized_key to 600.
Root @ DALY-Virtual-machine :~ /. Ssh # chmod 600 ~ /. Ssh/authorized_keys
8. Restart the SSH service.
Root @ DALY-Virtual-machine :~ /. Ssh # service SSH restart
Use of SSH Public Key