On Mon, 2006-01-23 at 17:07 -0600, Les Mikesell wrote:
On Mon, 2006-01-23 at 16:53, Craig White wrote:
copied them to my workstation and then used the 'import' function in nxclient to import the keys and try to connect and always get the following detail when I failed to connect...
Try pasting the text from /etc/nxserver/client/client.id_dsa.key into the nxclient key window and saving it instead of using the import function.
that actually got me a lot further...I get 'authentication failed for user craig'
So back on the server, I tried...
nxserver --adduser craig
This shouldn't be necessary. If you can log in as yourself with ssh and a password, nxclient should work. What is supposed to happen is that it logs in first as the 'nx' user with ssh and the client key and uses this only for an encrypted path to pass the real username and password - which should only need to be normal users. Installing the freenx rpm should have created the nx user. The rest should happen like you logged into the console.
---- I think the user nx is alive and well...
# getent passwd |grep nx nx:x:102:103::/var/lib/nxserver/home:/usr/bin/nxserver
# ls -al /var/lib/nxserver/home total 80 drwx------ 4 nx root 4096 Jan 23 15:16 . drwx------ 4 nx root 4096 Jan 23 15:16 .. -rw-r--r-- 1 nx root 304 Jan 23 15:16 .bash_logout -rw-r--r-- 1 nx root 191 Jan 23 15:16 .bash_profile -rw-r--r-- 1 nx root 124 Jan 23 15:16 .bashrc -rw-r--r-- 1 nx root 383 Jan 23 15:16 .emacs -rw-r--r-- 1 nx root 120 Jan 23 15:16 .gtkrc drwx------ 2 nx root 4096 Jan 23 16:11 .ssh drwxr-xr-x 2 nx root 4096 Jan 23 15:16 .xemacs -rw-r--r-- 1 nx root 658 Jan 23 15:16 .zshrc
# ls -al /var/lib/nxserver/home/.ssh total 48 drwx------ 2 nx root 4096 Jan 23 16:11 . drwx------ 4 nx root 4096 Jan 23 15:16 .. -rw-r----- 1 nx root 611 Jan 23 15:16 authorized_keys2 -rw------- 1 nx root 668 Jan 23 15:16 client.id_dsa.key -rw-r--r-- 1 nx root 220 Jan 23 15:16 known_hosts -rw------- 1 nx root 611 Jan 23 15:16 server.id_dsa.pub.key
# diff /var/lib/nxserver/home/.ssh/client.id_dsa.key \ /etc/nxserver/client.id_dsa.key #
exasperation...
Thanks
Craig