sudo chmod 600 ~/.ssh/authorized_keys

Category: Self-Hosting

sudo chmod 600 ~/.ssh/authorized_keys

Set correct permissions on the authorized_keys file — SSH will refuse to use it if it's

Sets the authorized_keys file to be readable only by its owner. SSH will silently refuse to use the file if it's writable by other users.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.