On Sat, 25 Feb 2012, Patrick Dupre wrote:
On Wed, 22 Feb 2012, Aram J. Agajanian wrote:
On Sun, 19 Feb 2012 13:35:44 +0000 (GMT)
Patrick Dupre patrick.dupre@york.ac.uk wrote:
From a fedora 14 I cannot open a nx session of a fedora 16.
The nx server seems OK
systemctl status nxserver.service nxserver.service - LSB: Starts and stops the NoMachine NX Server. Loaded: loaded (/etc/rc.d/init.d/nxserver) Active: active (exited) since Sun, 19 Feb 2012 13:34:43 +0100; 56min ago Process: 3708 ExecStop=/etc/rc.d/init.d/nxserver stop (code=exited, status=0/SUCCESS) Process: 3741 ExecStart=/etc/rc.d/init.d/nxserver start (code=exited, status=0/SUCCESS) CGroup: name=systemd:/system/nxserver.service
I get: SH running with pid: 17524 NX> 285 Enabling check on switch command NX> 285 Enabling skip of SSH config files NX> 285 Setting the preferred NX options NX> 200 Connected to address: 192.168.0.100 on port: 22 NX> 202 Authenticating user: nx NX> 208 Using auth method: publickey NX> 204 Authentication failed.
I can make a ssh as well a sshfs of the machine.
Any idea?
Check the ownership and permissions of the files in /var/lib/nxserver/home/.ssh/
ls -l /usr/NX/home/nx/.ssh total 8 -rw-r--r--. 2 nx root 668 Feb 19 14:40 authorized_keys2 -rw-r--r--. 2 nx root 668 Feb 19 14:40 default.id_dsa.pub -rw-r--r--. 1 nx root 668 Feb 2 2010 default.id_dsa.pub.backup -rw-r--r--. 1 nx root 668 Feb 2 2010 restore.id_dsa.pub
They should be owned by nx and the permissions should be 700 or 600.
Also, the client.id_dsa.key file should be imported into the nx client.
How can I do this? I do not have a client.id_dsa.key
After: nxserver --keygen
I have:
/usr/NX/share/keys total 6 -rw-r--r--. 1 root root 668 Feb 26 00:01 default.id_dsa.key -rw-r--r--. 1 root root 668 Feb 19 14:40 default.id_dsa.key.backup -rw-r--r--. 1 root root 668 May 28 2007 server.id_dsa.key
and
/usr/NX/etc/keys/ total 4 -rw-r--r--. 1 root root 603 Dec 19 2010 node.localhost.id_dsa.pub -rw-------. 1 nx root 672 Dec 19 2010 node.localhost.id_dsa
I do not understand:
then just go and recopy the key from inside the client .key file in the shared keys directory and paste it in your NX CLIENT and the connection will then complete successfully.
On the server I deleted /usr/NX/share/keys/default.id_dsa.key
and copy the key: /usr/NX/share/keys/default.id_dsa.key of the client on the server. I also tried do copy in /usr/NX/etc/keys/
nxserver --restart
But still does not work.