SSH

SSHD not recognizing authorized keys, hint: check permissions on file

Check permissions on the files # = comments [www@eolsystem ~]$ chown -R kevin:kevin ./ssh # change ownership recursive user:group folder [www@eolsystem ~]$ chmod 700 .ssh/ # change file mode bits on folder…

Check permissions on the files

# = comments

[www@eolsystem ~]$ chown -R kevin:kevin ./ssh # change ownership recursive user:group folder
[www@eolsystem ~]$ chmod 700 .ssh/ # change file mode bits on folder
[www@eolsystem ~]$ chmod 600 .ssh/authorized_keys # change file mode bits on file


# How the permissions should look like

[www@eolsystem ~]$ ls -la .ssh/
total 12
drwx------. 2 kevin kevin 4096 Feb  8 21:12 . # this folder /home/kevin/.ssh/
drwx------. 5 kevin kevin 4096 Feb  8 21:12 .. # the folder above the current one, /home/kevin (permissions not relevant on this folder...)
-rw-------. 1 kevin kevin   95 Feb  8 21:02 authorized_keys # /home/kevin/.ssh/authorized_keys
[kevin@fivemin ~]$
Check file permissions