Common centos users cannot log on to ssh

Source: Internet
Author: User
Check the/etc/ssh/sshd_config file and find that the root user can directly log on to SSH without any restrictions .. generally, the default centos can be used to log on to SSH after a new user is created, but I cannot. The reason is that UsePam is enabled by default in sshd_config...
Check the/etc/ssh/sshd_config file and find that the root user can directly log on to SSH without any restrictions .. generally, the default centos can log on to SSH after setting up a new user, but I cannot log on to SSH. The reason is that UsePam is enabled by default in sshd_config, so I can find/etc/security/access. conf file
It is found that the default value is-: ALL privileges t root: ALL. that is to say, it is not allowed to log on to any user other than root... so the problem is solved by changing www.2cto.com to-: ALL privileges t root yourusername: ALL. for security reasons, you can also choose to remove root and leave your username .. however, we recommend that you change it to the upper-column mode author zhangyifei216.

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.