Centos Key Login System

Source: Internet
Author: User

There are two machines have been placed in the IDC room has not been how to formally use, today suddenly said a project to go online, so hurriedly configure the environment, do some rights control, has been using the password to log in, and now officially use the public, password login way is certainly not safe, so follow the previous method, using "Key + password" The way to log on to the system, configure the SSH restart service with Xshell use key login missing prompt key is not registered on the remote host, switch off the firewall, check the permissions configuration is no problem, the error is still there, very puzzled, before the configuration did not appear, so gooele a half-day, Finally found himself stepping on that hole, record down, hope next time can quickly pits.

1 First of all, I am using a third-party tool SECURECRT generated key, need to convert to OPENSSH format, if the host with the Openss-keygen generated by the key, there is no problem or the use of SECURECRT tools to convert

2 Check the configuration file,. SSH directory permissions if the Authorized_keys permission is 600 after checking if there are errors you can try to close SELinux and iptables

3 about several hosts to establish a trust relationship, password-free login, the same principle, when creating a key do not enter the password and then on each machine to store each other's public key

Centos Key Login System

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.