ssh key authentication troubles

Status
Not open for further replies.

odoyle

Explorer
Joined
Sep 2, 2014
Messages
62
Hi guys,
using FreeNAS-9.3-STABLE-201506292332
trying to enable ssh access to freenas with a key.
Followed instructions to create the key.
copied pub key to user in freenas gui (had to create a home directory for the user first.. it forced me to do it in a mount point which I thought was kind of strange.. seems like it would be better to be in / like the root home directory is).
Anyways, password ssh works fine for this user, but when trying to use the key, I get the classic "Permission denied (publickey)." error.
In verbose mode, I get "debug2: we did not send a packet, disable method".
I checked and permission of the home directory, .ssh dir and the authorizedkeys file all look correct.

Ideas?

Thanks

here is the relevant part of the ssh verbose output:


debug1: Offering RSA public key:

debug3: send_pubkey_test

debug2: we sent a publickey packet, wait for reply

debug1: Authentications that can continue: publickey

debug1: Trying private key: freenas_rsa

Saving password to keychain failed

Identity added: freenas_rsa ((null))

debug2: using passphrase from keychain

debug3: sign_and_send_pubkey: RSA SHA256:dnRBHCbyaBedP5JNMhLbf6/dYbCJDnm1KF+APzayvIs

debug2: we sent a publickey packet, wait for reply

debug1: Authentications that can continue: publickey

debug2: we did not send a packet, disable method

debug1: No more authentication methods to try.

Permission denied (publickey).
 

m0nkey_

MVP
Joined
Oct 27, 2015
Messages
2,739
What dataset type is your home directory? My guess it's set to 'Windows' (restrictive). If I recall, in 9.3 the home directory had to reside on a dataset with a UNIX type (passthrough).
 

odoyle

Explorer
Joined
Sep 2, 2014
Messages
62
Thanks for the idea but I checked and the dataset type is UNIX
 

odoyle

Explorer
Joined
Sep 2, 2014
Messages
62
I gave up trying to resolve that. I created a new user, new ssh key, and new dataset and it finally worked. Pain in the butt. Now I have a possibly unrelated issue that the ssh passphrase doesn't work when connecting remotely, ugh...
 
Status
Not open for further replies.
Top