SSH Permission Denied – Authentication refused: bad ownership or modes for directory – Forum – Mas AL Forum

BLOG IT SYSADMIN

Daftar akun digitalocean untuk mendapatkan free credit 100$.
DigitalOcean Referral Badge
SSH Permission Deni...
 
Notifications
Clear all

SSH Permission Denied - Authentication refused: bad ownership or modes for directory

1 Post
1 Pengguna
0 Reactions
66 Dilihat
Post: 15
Admin
Topic starter
(@alvian)
Eminent Member
Joined: 3 tahun lalu

If you are unable to log in to your remote server with your public key and encounter the error 'Authentication refused: bad ownership or modes for directory,' resolve this issue by adjusting the SSH permissions on your remote server using the following commands:

chmod go-w /home/user
chmod 700 /home/user/.ssh
chmod 600 /home/user/.ssh/authorized_keys

 

Correcting these permissions will resolve the error, allowing you to access your remote server successfully."

Share: