Forum / NoMachine for Windows / How to use key authentications?
- This topic has 4 replies, 2 voices, and was last updated 4 years, 6 months ago by
Carin.
-
AuthorPosts
-
April 15, 2021 at 17:31 #32926
adriano64ParticipantI’ve installed NoMachine 7.2.3 in Windows 10 and I like to activate keys authentication only.
I followed https://knowledgebase.nomachine.com/AR02L00785
but I get an authentication error.
The keys pair was generated in a Linux VM (ssh-keygen -m PEM -t rsa -b 4096 with a passphrase, when asked for)
Is Public key to be appended to the file c:\program files (x86)\nomachine\etc\keys\host\nx_host_rsa_key.crt ?
files should be something like this?
—–BEGIN CERTIFICATE—–
—–END CERTIFICATE—–
ssh-rsa <publik key string>
When I try connection, it asks for a username and keyphrase. Keyphrase is the one I input generating the key, but username?
I also tried generating keys with puTTYgen and creating a authorized.crt file, but same results.
Thanks
Adriano
April 16, 2021 at 14:19 #32947
CarinParticipantHi Adriano,
“Is Public key to be appended to the file c:\program files (x86)\nomachine\etc\keys\host\nx_host_rsa_key.crt ?”
No, it should be added to:
<user's home>/.nx/config/authorized.crt“—–BEGIN CERTIFICATE—–
—–END CERTIFICATE—–
ssh-rsa <publik key string>”
Here, should be only
ssh-rsa <publik key string>“When I try connection, it asks for a username and keyphrase. Keyphrase is the one I input generating the key, but username?”
When prompted to log in, you should use the username and password of your account on the remote PC (fig.7 here https://www.nomachine.com/getting-started-with-nomachine).
April 19, 2021 at 10:04 #32948
adriano64ParticipantHello, thanks for your reply.
<user's home>/.nx/config/authorized.crtseemed a Linux path; I had not seen the .nx directory in the user profile.I create an authorized crt with the public key but…it doesn’t work yet.
If I set authentication by key, I have no connection. It asks for username and passphrase (and doesn’t work with both my password and the key passphrase); if I set connection with normal username and password it works, but I don’t want that.
April 19, 2021 at 18:21 #32969
adriano64ParticipantIt works! The problem was in the generated keys (both Linux and PuTTYgen ). I installed client open ssh in Windows to generate keys pair and now it works.
Thanks for other suggestions.
April 19, 2021 at 18:25 #32974
CarinParticipantHi adriano64,
We are glad the issue is resolved. Thank you for letting us know!
-
AuthorPosts
This topic was marked as solved, you can't post.
