Permission denied (publickey) FreeNas

Today I was able to solve this one problem that was driving me nuts for the past 3 days. Connecting to freenas with ssh using ssh keys.

I am trying to setup a backup system, where a web server can backup to freenas through the network. For some reason ssh was not able to login in to my freenas server, after doing lots of search I came up with this page:

https://www.ixsystems.com/community/threads/freenas-11-ssh-permission-denied-publickey.59762/post-504414

Basically the permissions are wrong in freenas, run the following commands and it will set the correct permissions to be able to login.

chmod go-w ~/
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys 

After this change, the connection goes through as spectated

Comments

So empty here ... leave a comment!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Sidebar