Notifications
Clear all
Jan 03, 2024 2:43 pm
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."