Use of SSH Public Key

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.