Crypto Ticker:
Teknologi from nixCraft

SSH Authentication refused: bad ownership or modes for file /home/user/.ssh/authorized_keys

Vivek Gite
May 24, 2024 at 19:23
1 Views
0 Comments
SSH Authentication refused: bad ownership or modes for file /home/user/.ssh/authorized_keys
See all UNIX related articles/faq

I'm trying to login using ssh keys but server is only allows to login me using a password. The following message is logged into my Linux or Unix server /var/log/secure or /var/log/auth.log file:

Feb 25 06:36:50 ns5 sshd[26681]: Authentication refused: bad ownership or modes for file /home/user/.ssh/authorized_keys2

Here is another message:

May 24 18:28:35 ls-www-1 sshd[531320]: Connection closed by 18.1.2.3 port 43640 [preauth] May 24 18:28:44 ls-www-1 sshd[531322]: Authentication refused: bad ownership or modes for file /home/admin/.ssh/authorized_keys May 24 18:28:44 ls-www-1 sshd[531322]: Connection closed by authenticating user admin 18.1.2.3 port 43650 [preauth]

How do I fix this problem?

Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit

The post SSH Authentication refused: bad ownership or modes for file /home/user/.ssh/authorized_keys appeared first on nixCraft.

Was this helpful?
Share:

Comments (0)

Please login to post a comment

No comments yet. Be the first to comment!