Can't get public-key authentication to work

Status
Not open for further replies.
Joined
Sep 13, 2014
Messages
1
Thanks David for this thread, it helped me too. I really didn't expect that write permissions on home folder and ssh stuff would be a problem, but it was.

Btw, ssh with key still worked for me even with wrong permissions from iPad, but the key from iPad was not in authorized_keys file but in separate file in .ssh directory instead.

FreeNAS-9.2.1.7-RELEASE-x64 (fdbe9a0)
 

Sonia Hamilton

Dabbler
Joined
Mar 17, 2014
Messages
10
I haven't read through all the replies, so this may have appeared already.

Looking through /var/log/auth.log, I noticed Authentication refused: bad ownership or modes for directory /mnt/vol01/sonia.

So solution was:

cd /mnt/vol01
sudo chmod 0700 sonia
cd
chmod 0700 .ssh
cd .ssh
chmod 0600 authorized_keys
 
Status
Not open for further replies.
Top