“Cannot log in with SSH” problem

Forum / NoMachine for Linux / “Cannot log in with SSH” problem

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #31203
    MartinBonner
    Participant

    Problem: I can log in with user-name + password, but not with an SSH key.

    Error: Authentication with ‘NX-private-key’ from host failed. Error is ‘Public key not recognized’

    Client setup:

    • Windows 10, recently installed, and recently updated.
    • NoMachine free 7.0.211
    • RSA private key generated with PuTTYGen and then converted with “Export SSH Key”.  It starts
      “—–BEGIN RSA PRIVATE KEY—–” then 25 lines Base-64 encoded data, then “—–END RSA PRIVATE KEY—–“

    Server setup:

    • Ubuntu 18.04 and updated.
    • NoMachine free 7.0.211
    • ~/nx/config/authorized_keys is as follows

    ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAvTc5OoSLZ3vmnOuowHOt+oS1TZb9w4AzwD7xgcjx7cWy1LB88QugeiIIeH/G/g6FDicSbd/c71HpZlqwsDVDgCY3/H8AeIr+SagLd4Nv5qWa5TfhrQzM4clKbY9UZaxG5U9LZ8tl5ANf/bj6j0T+Jt+Mz2IV7P/1HSjzRb/pBUqqQIuikWc8B1U7NRzDDiwrximQK/ydmRLr6DvRIszUKEJmx55eVLF01blweJSiIdOcU804oy

     

    OK, what simple configuration step have I missed?

     

     

    #31225
    og00r
    Contributor

    Please check article:
    https://www.nomachine.com/AR02L00785

    especially:

    2. You should find there the authorized.crt file. Create this file if it doesn’t exist. On Linux/Mac, this file needs to have permissions set to 0600.

    create authorized.crt file with correct permissions

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

This topic was marked as solved, you can't post.