Forum / NoMachine for Linux / How to set up private key authentication?
- This topic has 8 replies, 3 voices, and was last updated 7 years ago by
Britgirl.
-
AuthorPosts
-
February 14, 2019 at 14:56 #21390
jjgalvezParticipanthow do I set up private key authentication for NX on Linux? The docs I see online only show examples for things like oath and google-authenticator. I would think that using a private key would be simpler and easier but I can’t see to find examples of how to set it up. Any help would be much appreciated
February 14, 2019 at 15:08 #21395
BritgirlKeymasterDoes this help?
How to set up key based authentication with NX protocol
https://www.nomachine.com/AR02L00785February 14, 2019 at 16:00 #21398
jjgalvezParticipantSo I followed those instructions
Created a key, appended the pub cert to the end of .nx/config/authorized.crt
On the client I checked “private key” and imported my private cert
But when I try to connect nothing happens. BTW the cert has not passphrase so none was entered
Not sure where to go from here
February 14, 2019 at 16:18 #21399
jjgalvezParticipantI looked at the nxserver log and there I see a public key not recognized error
February 14, 2019 at 16:19 #21401
jjgalvezParticipantOK so one thing I did wrong is that I created the cert pair on the server and not on the client was the connecting to the server, once I created the cert on the client and imported the correct pub cert on the server I was able to connect with just my certs.
February 18, 2019 at 09:24 #21463
DavidBParticipantAre keypairs device-specific then? I created a keypair using Ubuntu WSL on Windows 10 with the intention to use the keypair on my Raspberry Pi server and Android phone client but it is not working.
February 21, 2019 at 13:04 #21527
BritgirlKeymasterMake sure you have already generated an SSH key pair, for example by using the ssh-keygen tool on a Linux host and that the keys are in OpenSSH format. (https://www.nomachine.com/AR02L00785) We tested on the fly to make sure and it works fine.
February 22, 2019 at 08:56 #21546
DavidBParticipantOkay I figured out what I was doing wrong. I thought that the issue was with my keys that I made using ssh-keygen so I used the key generator that ships with NoMachine to generate them, then noticed that I was saving the key to the wrong location. I was following the instructions for setting up SSH control and not just authentication.
February 22, 2019 at 12:31 #21561
BritgirlKeymasterGlad to know that it’s now working 🙂
-
AuthorPosts
This topic was marked as solved, you can't post.
