Loging with pubickey only

Louis2

Contributor
Joined
Sep 7, 2019
Messages
177
I am running two TrueNas systems one core one scale (cobra) and for some reason I do not manage to create an account which can login with a ssh-key.

Even more exotic, I do have some accounts on scale using a pubkey to login. But I defined those in the past.

I tried every thing, but for some unkown reason, I do not manage to create a new account which can access the system using a pubkey.

Someone any idea?
 

Louis2

Contributor
Joined
Sep 7, 2019
Messages
177
Further diving into the problem I found following problems:
- I did define the root of the user directory's as admin and not as root. The consequences were that that root directory was not owned by root. So I
did ^lion% sudo chown root:root home^
- I also changed the home directory permissions
^lion% sudo chmod 755 home^

And I noticed that TrueNas seems to have problems with OPEN SSH keys, so I did generate the key-sets (public and private keys) on TrueNas itself

In case you need the truenas system to connect to some other system using SSH, you should put the private key of the involved user in the users home directory renamed as ^id_rsa^ (home/<user-home>/.ssh/id_rsa)
 
Top