Centos 6.5 SSH upgrade to 6.6 Mining Process

Source: Internet
Author: User

After creating an ssh rpm package, you cannot log on to the system using SSH. the following error is returned:

 
Pam unable to dlopen (/lib64/security/pam_stack.so):/lib64/security/pam_stack.so: cannot open shared object file: no such file or directorypam adding Faulty module: /lib64/security/pam_stack.so

After troubleshooting, it is found that the/etc/PAM. d/sshd file will be modified after the ssh rpm upgrade.

# % PAM-1.0auth required pam_stack.so service = system-authaccount required pam_nologin.soaccount required pam_stack.so service = system-authpassword required pam_stack.so service = system-authsession required pam_stack.so service = system-auth

You need to restore the original image as follows:

# % PAM-1.0auth required should include password-authaccount required should include password-authpassword include password-auth # pam_selinux.so close shocould be the first session rulesession required should closesession required should # should open shocould only be followed by sessions to be executed in the user contextsession required pam_selinux.so open env_paramssession optional pam_keyinit.so force revokesession include password-auth


Centos 6.5 SSH upgrade to 6.6 Mining Process

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.