SSH Add key Login

Source: Internet
Author: User

Log in with the account you want to create a login key for

Generate key

#ssh-keygen-t RSA

Generated when prompted to enter a password, if not entered, then directly enter, if entered, will be required to enter the password in the non-key login

Enter the build directory. SSH

#cd ~/.ssh/

Rename Id_rsa.pub to Authorized_keys

and set the Authorized_keys permission to 400 (not writable)

Download the id_rsa. SSH directory to a local

Configure Sshd_config

Make sure that the following options exist

Rsaauthentication Yes

Authorizedkeysfile. Ssh/authorized_keys

Download Puttygen.exe

Convert the key to a. ppk file

Login with putty, load the converted PPK key file

SSH Add key Login

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.