How to use key authentications?

Forums / NoMachine for Windows / How to use key authentications?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #32926
    Avataradriano64
    Participant

    I’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

    #32947
    AvatarCarin
    Participant

    Hi 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).

    #32948
    Avataradriano64
    Participant

    Hello, thanks for your reply.

    <user's home>/.nx/config/authorized.crt seemed 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.

     

    #32969
    Avataradriano64
    Participant

    It 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.

    #32974
    AvatarCarin
    Participant

    Hi adriano64,

    We are glad the issue is resolved. Thank you for letting us know!

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.