Hello,
I am trying to setup SSH authentication utilizing public/private key pairs. I have been following a number of guides, listed below:
https://blog.binarymist.net/2010/04/06/a-few-steps-to-secure-a-freenas-server/
http://chrisadas.com/2015/12/30/set-up-ssh-key-pairs-for-freenas-jails/
I have created a public/private key on my FreeNAS .ssh/ directory and copied the key into a file name "authorized_keys" in the same .ssh/ directory. I have then imported that key into PuttyGen and saved it on my Windows system.
When I try to connect using these keys, I get a "Disconnected: No supported authentication methods available (server sent: publickey) Server refused our key" error.
I have a feeling this has something to do with permissions, but I am not sure. Also, in doing some digging, it appears the CHMOD command is no longer allowed? The SMB share I have setup on my FreeNAS in order to allow my Windows systems to map the network drive does have the "Apply Default Permissions" box checked. Does that make a difference?
The current permissions for the .ssh folder and files is as follows:
authorized_keys* -rwxrwxr-x+
id_rsa* -rwxrwxr-x+
.ssh/ drwxrwxr-x+
Any help/guidance you might be able to provide would be greatly appreciated. Thank you!
I am trying to setup SSH authentication utilizing public/private key pairs. I have been following a number of guides, listed below:
https://blog.binarymist.net/2010/04/06/a-few-steps-to-secure-a-freenas-server/
http://chrisadas.com/2015/12/30/set-up-ssh-key-pairs-for-freenas-jails/
I have created a public/private key on my FreeNAS .ssh/ directory and copied the key into a file name "authorized_keys" in the same .ssh/ directory. I have then imported that key into PuttyGen and saved it on my Windows system.
When I try to connect using these keys, I get a "Disconnected: No supported authentication methods available (server sent: publickey) Server refused our key" error.
I have a feeling this has something to do with permissions, but I am not sure. Also, in doing some digging, it appears the CHMOD command is no longer allowed? The SMB share I have setup on my FreeNAS in order to allow my Windows systems to map the network drive does have the "Apply Default Permissions" box checked. Does that make a difference?
The current permissions for the .ssh folder and files is as follows:
authorized_keys* -rwxrwxr-x+
id_rsa* -rwxrwxr-x+
.ssh/ drwxrwxr-x+
Any help/guidance you might be able to provide would be greatly appreciated. Thank you!