Use SecureCRT to set ssh public key authentication for linux login

Source: Internet
Author: User
Tags ssh server
Use SecureCRT to set the ssh public key for linux login to authenticate the linux system environment: CentOSrelease5.5www. 2cto. com1. modify the ssh configuration file/etc/ssh/sshd_configRSAAuthenticationyes // use RSA encryption...
Use SecureCRT to set the ssh public key for linux logon to authenticate the linux system environment: CentOS release 5.5 www.2cto.com 1. modify the ssh configuration file/etc/ssh/sshd_configRSAAuthentication yes // use the RSA encryption algorithm PubkeyAuthentication yes // use the public key to authenticate AuthorizedKeysFile. ssh/authorized_keys // files stored with the allowed public key are stored in the user's main directory PasswordAuthentication no // password verification login is prohibited. If enabled, RSA authentication login does not make sense 2. generate a public key/key pair. use SecureCRT's "tool> create public key". select RSA as the encryption algorithm because the RSA algorithm is selected in the sshd configuration file to generate the Identity of the key file and the Identity of the public key file. pub. You will be prompted to enter a passage phrase to protect the key. remember to use it for each connection in the future. It can also be empty. Www.2cto.com 3. upload the public key to change the public key Identity. pub uploads/home/user/to the ssh server system /. in ssh, I use the root account, so the path is/root /. ssh, if no. create an ssh directory by yourself. ssh folder 4. openssh does not support the key format generated by SecureCRT. type conversion is required: ssh-keygen-I-f Identity. pub> authorized_keyschmod 600 authorized_keys 5. restart sshd service sshd restart 6. restart SecureCRT to ensure that the "public key" item is checked in the "authentication" setting of the connection attribute. enter the phrase as required after the connection. The public key and private key file are stored in the same directory on the local machine.
Related Article

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.