Ssh cannot be logged on through the trust relationship

Source: Internet
Author: User
It is found that although a machine has established a trust relationship, it still cannot log on through the trust relationship, checking many places .... 1 ,~ /. Ssh directory permission 2 ,~ /. Ssh/file permissions 3. a public key is generated on the client and uploaded to the server. the client still cannot log on to the trusted link. 4. check the permission...

It is found that although a machine has established a trust relationship, it still cannot log on through the trust relationship, checking many places ....
1 ,~ /. Ssh directory permission
2 ,~ /. Ssh/File permission
3. a new public key is generated on the client and uploaded to the server. the client still cannot log on to the trusted link.
4. check the content of the/etc/ssh/sshd_config file.
5. I almost had to restart sshd (for fear of influencing others, attempted)
6. baidu search
No results.
------------------------------------------- Solution -------------------------------------------
Suddenly I checked the/var/log/secure log. Wow, I finally found the reason. it turns out that the user's main directory permission does not meet the requirements. after chmod, OK
------------------------------------------- End --------------------------------------------------


Author: "a sa's work and learning Records"

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.