Diary - SSH keygen issue
22 Feb 2024There are cases where connecting to a server with SSH keygen doesn’t work.
I wasted two hours flailing around, so I’m recording this in case it happens again.
- Typos
- Don’t make typos in
authorized_keys - When copy-pasting id_rsa.pub, make sure you copy the whole thing properly
- Permissions
- The
.sshfolder should be 700 - The
.ssh/id_rsafile should be 644 - Other files inside the
.sshfolder should be 600
- The