[FreeNX-kNX] cannot ssh as nx-user

Clay McCoy freenx at claymccoy.com
Sat Aug 6 16:59:17 UTC 2005


So I am looking at the faq, and it says to try this:
ssh -i /usr/NX/share/keys/server.id_dsa.key nx at nxserver
It asked for a password, so that didn't work.

Later in the faq it says to try this:
ssh -i /usr/NX/share/client.id_dsa.key nx at 192.168.1.6
with the client key instead of the server key which makes more sense.  
Doing it with the server key a mistake, or do I just not get what it is 
trying to do?

But neither work, and I am sure that I have the appropriate keys on the 
server and client.  So I decide to reinstall and move the key over to 
the client all fresh like and give it another try.

First I try to uninstall with this:
rpm -e freenx nx
But it doens't work, it tells me:
error: %preun(freenx-0.4.3.9-2.fdr.0.noarch) scriptlet failed, exit status 1

So I run:
nxsetup --setup-nomachine-key --install --clean --purge
And it looks like it all ran fine, but there is nothing in 
/var/lib/nxserver/home/.ssh on the server now.  No keys to move over.  
No keys at all.  This is the same directory where 
"~nx/.ssh/authorized_keys" is supposed to be right?
BTW I keep seeing references to "~nx/.ssh/authorized_keys" but the file 
I actually have in /var/lib/nxserver/home/.ssh is authorized_keys2.  Is 
this the same file.  Do I need to have in my
/etc/sshd_config file AuthorizedKeysFile to be ".ssh/authorized_keys" or 
".ssh/authorized_keys2".

And why do I have keys in that directory and in /etc/nxserver/.ssh.  
What is this directory for anyway?

I have read the faq and I am more confused than ever about this stuff.  
I can't even uninstall or get keys to generate anymore.

One final thing.  Is it pronounced Free N X or Free Nix?

Thanks,
Hopefully soon to be FreeNX fan

Thorsten Sandfuchs wrote:

>On Fri, Aug 05, 2005 at 10:15:38PM -0500, Clay McCoy wrote:
>  
>
>>Now I can't authenticate at all.  ssh with the nx user asks for a 
>>password, but it is supposed to just use the key isn't it?  So I erased 
>>all the server side keys, reinstalled, and the regenerated, and copied 
>>them over.  It is the same key on my client and server.  But still can't 
>>ssh as nx without being asked for a password.  Is there something I 
>>needed to reconfigure when I updated?
>>    
>>
>
>no, this is purely sshd related in this stage of the process, you have to fix
>your sshd-setup first.
>
>try to finger the nx-user and look closely on the access rights of
>~nx/.ssh/authorized_keys. Consult your /var/log/auth.log, too.
>
>I will include this in the FAQ, please add some more tips/tricks/places to
>look.
>http://openfacts.berlios.de/index-en.phtml?title=FreeNX_FAQ/Server
>
>shine on,
>				/fux
>  
>




More information about the FreeNX-kNX mailing list