[FreeNX-kNX] FreeNX CentOS Permission denied (publickey, gssapi-keyex, gssapi-with-mic)

Chris chris at ccburton.com
Mon Jul 29 11:31:44 UTC 2013


freenx-knx-bounces at kde.org wrote on 29/07/2013 07:10:50:

[SNIP]

We got to PASSDB with 
&link=adsl&backingstore=1&encryption=1&cache=16M&images=64M&shmem=1&shpix=1&strict=0&composite=1&media=0&session=vps&type=unix-gnome&geometry=1914x1138&client=winnt&keyboard=pc102/en_US&screeninfo=1914x1138x32+render&clientproto=3.2.0&user=user&userip=192.168.1.101&uniqueid=C520276F85462929964FED92A22793AE&display=1000&host=127. 
0.0.1
ssh
user
127.0.0.1
45559
/usr/bin
--startsession
and login method PASSDB 
> NX> 1004 Error: Session did not start. 



***  I see ***
This hasn't given the usual
         Permission denied (publickey, gssapi-keyex, gssapi-with-mic)
error message.

Where was that written to before?? Was it present this time ??
[SNIP] 
> Strange, should I try a compelte and clean reinstall?  




Might fix things. Will freshen/simplify your NXsetup anyway . . . 





Just before you try that, run a couple more things tho'

On the NX server

        su -l nx -s /bin/bash

again to
         user nx running /bash

as you did before
and
        run ssh etc as before
but
this time with the nxnode command  at the end, and echo "parameters" | ssh
i.e this command  ( Watch the line wrap again after that echo)


echo 
"&link=adsl&backingstore=1&encryption=1&cache=16M&images=64M&shmem=1&shpix=1&strict=0&composite=1&media=0&session=vps&type=unix-gnome&geometry=1914x1138&client=winnt&keyboard=pc102/en_US&screeninfo=1914x1138x32+render&clientproto=3.2.0&user=user&userip=192.168.1.101&uniqueid=C520276F85462929964FED92A22793AE&display=1000&host=127. 
0.0.1"    |    ssh -l "user"    127.0.0.1    -p 45559  -x  -2       -i 
/etc/nxserver/client.id_dsa.key    -o 'PubkeyAuthentication yes'     -o 
'RSAAuthentication yes'       -o 'RhostsAuthentication no'  -o 
'PasswordAuthentication no'   -o 'RhostsRSAAuthentication no'  -o 
'StrictHostKeyChecking no'  /usr/bin/nxnode --startsession




** ALSO** 

 (big  ooops here) I missed putting in

        $NX_ETC_DIR/users.id_dsa 

in the "echo line" you added to nxserver, so we should just check nxserver 
is actually finding the private key file
else
        we would get such an error . . .
so
if you kept the modified nxsever, you could run it again



This time add the following line near 933

echo -e "We got to PASSDB 
with\n$@\n$COMMAND_SSH\n$USER\n$NODE_HOSTNAME\n$SSHD_PORT\n$NX_ETC_DIR/users.id_dsa\n$PATH_BIN\n$CMD\nand 
login method $LOGIN_METHOD\n"|log_tee 

 . . . just before the echo.


*** ALSO ***



I notice that
         $COMMAND_SSH
contains
         "ssh"
without the path


Do you have another ssh anywhere, a wrapper script maybe ???

what do the commands

        file `which ssh`; . nxloadconfig; file `which ssh`

produce.



And/or you could try adding

        COMMAND_SSH=/usr/bin/ssh

to
         /etc/nxserver/node.conf


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/freenx-knx/attachments/20130729/939e853e/attachment.html>


More information about the FreeNX-kNX mailing list