I am running nxserver on a linux box and installed NoMachine Player on laptop. Every time I connect to nx on the linux box, basically it comes with two steps:
- SSH to user nx on the linux box
- On the linux box, the user nx login as the real user
By default, step 1 uses a default dsa key, which is not secure and step 2 is protected by password (you need to type password to login).
I want to avoid typing the password but maintain security. What I am trying to do is
- For step 1: generate new key pairs. This is done already by running nxserver --keygen on the linux box.
- For step 2: let nx uses ssh keys to login.
Currently I am stuck at step 2, which I don't know where to put the private key on nx side and how to let nx to use the private key instead of using password authentication. Anyone can give any hint? Thanks.