<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18928"><LINK rel=stylesheet 
href="BLOCKQUOTE{margin-Top: 0px; margin-Bottom: 0px; margin-Left: 2em}"></HEAD>
<BODY style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt">
<DIV><FONT size=2 face=Verdana>I have installed freenx with this 
article</FONT></DIV>
<DIV> </DIV>
<DIV><A 
href="http://wiki.centos.org/HowTos/FreeNX">http://wiki.centos.org/HowTos/FreeNX</A> 
</DIV>
<DIV> </DIV>
<DIV>but when I use freenx-client on windows to connect to server, </DIV>
<DIV>I always get an "freenx Authentication failed."</DIV>
<DIV><FONT size=2 face=Verdana></FONT> </DIV>
<DIV>client err log output as this:</DIV>
<DIV>
<DIV>NX> 203 NXSSH running with pid: 1584</DIV>
<DIV>NX> 285 Enabling check on switch command</DIV>
<DIV>NX> 285 Enabling skip of SSH config files</DIV>
<DIV>NX> 285 Setting the preferred NX options</DIV>
<DIV>NX> 200 Connected to address: 192.168.253.5 on port: 22</DIV>
<DIV>NX> 202 Authenticating user: nx</DIV>
<DIV>NX> 208 Using auth method: publickey</DIV>
<DIV>NX> 204 Authentication failed.</DIV></DIV>
<DIV> </DIV>
<DIV>My sshd configed as use rsa key, and ssh soft like xshell can 
work well.</DIV>
<DIV> </DIV>
<DIV>nxsetup output as this: Pleas care the following red commented two line. I 
just think this is the point.</DIV>
<DIV>But why , and what shoud I do to solver ?</DIV>
<DIV> </DIV>
<DIV>
<DIV>[root@tigertall ~]# nxsetup --test</DIV>
<DIV></DIV>
<DIV>----> Testing your nxserver configuration ...</DIV>
<DIV>Warning: Could not find nxdesktop in /usr/bin. RDP sessions won't work.</DIV>
<DIV>Warning: Could not find nxviewer in /usr/bin. VNC sessions won't work.</DIV>
<DIV>Warning: Invalid value "APPLICATION_LIBRARY_PRELOAD=/usr/lib/libX11.so.6.2:/usr/lib/libXext.so.6.4:/usr/lib/libXcomp.so.2:/usr/lib/libXcompext.so:/usr/lib/libXrender.so.1.2". /usr/lib/libX11.so.6.2 could not be found. Users will not be able to run a single application in non-rootless mode.</DIV>
<DIV>Warning: Invalid value "DEFAULT_X_SESSION=/etc/X11/xdm/Xsession"</DIV>
<DIV>         Users might not be able to request a default X session.</DIV>
<DIV>Warning: Invalid value "COMMAND_START_CDE=cdwm"</DIV>
<DIV>         Users will not be able to request a CDE session.</DIV>
<DIV>Warning: Invalid value "COMMAND_SMBMOUNT=smbmount". You'll not be able to use SAMBA. </DIV>
<DIV>Warning: Invalid value "COMMAND_SMBUMOUNT=smbumount". You'll not be able to use SAMBA.</DIV>
<DIV>Error: Could not find 1.5.0 or 2.[01].0 or 3.[01].0 version string in nxagent. NX 1.5.0 or 2.[01].0 or 3.[012].0 backend is needed for this version of FreeNX.</DIV>
<DIV></DIV>
<DIV>  Warnings occured during config check.</DIV>
<DIV>  To enable these features please correct the configuration file.</DIV>
<DIV></DIV>
<DIV><---- done</DIV>
<DIV></DIV>
<DIV>----> Testing your nxserver connection ...</DIV>
<DIV><FONT 
color=#ff0000>Permission denied (publickey,gssapi-with-mic).</FONT></DIV>
<DIV><FONT 
color=#ff0000>Fatal error: Could not connect to NX Server.</FONT></DIV>
<DIV></DIV>
<DIV>Please check your ssh setup:</DIV>
<DIV></DIV>
<DIV>The following are _examples_ of what you might need to check.</DIV>
<DIV></DIV>
<DIV>- Make sure "nx" is one of the AllowUsers in sshd_config.</DIV>
<DIV>    (or that the line is outcommented/not there)</DIV>
<DIV>- Make sure "nx" is one of the AllowGroups in sshd_config.</DIV>
<DIV>    (or that the line is outcommented/not there)</DIV>
<DIV>- Make sure your sshd allows public key authentication.</DIV>
<DIV>- Make sure your sshd is really running on port 22.</DIV>
<DIV>- Make sure your sshd_config AuthorizedKeysFile in sshd_config is set to authorized_keys2.</DIV>
<DIV>    (this should be a filename not a pathname+filename)</DIV>
<DIV>  - Make sure you allow ssh on localhost, this could come from some</DIV>
<DIV>    restriction of:</DIV>
<DIV>      -the tcp wrapper. Then add in /etc/hosts.allow: ALL:localhost</DIV>
<DIV>      -the iptables. add to it:</DIV>
<DIV>         $ iptables -A INPUT  -i lo -j ACCEPT</DIV>
<DIV>         $ iptables -A OUTPUT -o lo -j ACCEPT</DIV>
<DIV>[root@tigertall ~]# </DIV></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Thanks you!</DIV>
<DIV> </DIV>
<DIV align=left><FONT color=#c0c0c0 size=2 face=Verdana>2010-08-15 
</FONT></DIV><FONT size=2 face=Verdana>
<HR style="WIDTH: 122px; HEIGHT: 2px" align=left SIZE=2>

<DIV><FONT color=#c0c0c0 size=2 face=Verdana><SPAN>gaohu</SPAN> 
</FONT></DIV></FONT></BODY></HTML>