Facing issue while setting up password less ssh authentication
Issue
-
Unable to perform password less authentication via ssh due to bad (too open) home directory permissions.
Dec 29 13:06:15 rhel sshd[X]: debug1: trying public key file /home/test/.ssh/authorized_keys Dec 29 13:06:15 rhel sshd[X]: debug1: fd 4 clearing O_NONBLOCK Dec 29 13:06:15 rhel sshd[X]: Authentication refused: bad ownership or modes for directory /home/test Dec 29 13:06:15 rhel sshd[X]: debug1: restore_uid: 0/0 Dec 29 13:06:15 rhel sshd[X]: debug3: mm_answer_keyallowed: key 0x5556037223f0 is not allowed Dec 29 13:06:15 rhel sshd[X]: Failed publickey for abc from X.X.X.X port XXXX ssh2: RSA SHA256:XXX
Environment
- Red Hat Enterprise Linux (All Versions)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.