SSH Public key failed authentication

Securityssh

 

Set permissions with

chmod 700 .ssh chmod 600 .ssh/authorized_keys

 If find the following in your logs.

sshd[28426]: error: Could not load host key: /etc/ssh/ssh_host_ed25519_key

sshd[28426]: Authentication refused: bad ownership or modes for file /home/beta/.ssh/authorized_keys

 

 

 Check in logs for clues

 For Debian:

less /var/log/auth.log

For Redhat:

less /var/log/secure 

 

 

References:

http://unix.stackexchange.com/questions/163570/ssh-failed-public-key-authentication

Leave a Reply