![Mail365](https://cdn2.cdnme.se/5447227/9-3/23_64e61dfde087c337bd195b74.jpg)
I originally posted these instructions on my eRCaGuy_dotfiles repo here: If you saw the above error you have successfully disabled password authentication logins! Now try to connect remotely using NoMachine with password-based authentication, and you should see the following error in the GUI program: Now, just below this commented-out line indicating the default setting:Īdd this line to change the setting to allow ONLY key-based authentication: NB: Do NOT do this until key-based authentication is set up & verified to be working, or else you'll lose the ability to remotely connect via NoMachine, & have to manually fix it remotely over ssh, or locally! (.pub) key only from client to server run this from the client notice the renaming of the file on the destination to avoid conflict with keys already generated on the server:Īdd public key now on server to proper NoMachine file run this from the server:Īnd lastly set this file's permissions to 0600 to enable read/write on this file ONLY for the user (owner) of this file, for security:
![install nomachine ubuntu 20.04 install nomachine ubuntu 20.04](https://itslinuxfoss.com/wp-content/uploads/2022/10/How-to-install-NoMachine-on-Ubuntu-22.04-d-768x322.png)
![install nomachine ubuntu 20.04 install nomachine ubuntu 20.04](https://itslinuxfoss.com/wp-content/uploads/2022/10/How-to-install-NoMachine-on-Ubuntu-22.04-h-768x494.png)
Generate a new private/public key pair from the Here's one example of commands to do that:
![Mail365](https://cdn2.cdnme.se/5447227/9-3/23_64e61dfde087c337bd195b74.jpg)