• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Freenas and ssh key authentication?

I'm having some trouble trying to ssh into my freenas box. Using .686 right now, not .686.1 (don't want to break it all... heh).

But I created both an RSA and DSA private/public key. The default home directory is /mnt I believe, and created a .ssh folder and an authorized_keys file.

I stuck both RSA/DSA public keys into the authorized_keys file. Each on their own line. I tried each on their own as well.

I have a generic user I'm trying to log in. This user does not have a local account on any of the clients (ssh user@freenassbox). I also tried creating a user on Freenas that matched the client machine. I didn't know if it would make a difference, but I'm under the impression it shouldn't.

So... wtf am I missing, heh. In verbose mode, the client is offering the proper keys. All I can guess is I've put the authorized_keys in the wrong place? any ideas?

Thanks
 
for starters, i recommend reading an SSH how to written by drag.

here.

Its worth re-reading to see if you did anything wrong, or missed a step. Even if youre certain you didnt....well, you obviously did else itd be working. ensuring permissions are set correctly is a good place to start, and something thats easy to overlook. (ive found this out the hard way)

does the error you get specify a publickey problem?

might be worth posting the sshd_config from the freeNAS box

also, you have to login as a user on the host machine. either as root (though i think most people disable root logins) or as a regular user. reading through the aforementioned howto will probably let you figure out what needs to be done.
 
I just figured it out. I can't have the default /mnt as the home directory, namely because I can't seem to edit the permissions for that folder. I don't want to mess too much with it because that's where the drives mount.

Anyway, I created a different directory, and it seems to work.
 
Can you explain what you did a little further. I have tried to do all kinds of things to get the working and i know i have something just a little wrong. Currently root can login password-less, but none of my other users can. This has to be exactly what you are mentioning above. Explain what you did by "creating another directory" ... will it just automatically use those files no matter where you put them?

 
Back
Top