<br><tt><font size=2>freenx-knx-bounces@kde.org wrote on 31/10/2011 16:32:46:<br>
<br>
> I'm trying to get freenx to work with usermode authentication and
ssh <br>
> public keys, on Windows, and not having much luck.<br>
> <br>
> I've installed the wrapper from <br>
> </font></tt><a href=http://download.berlios.de/freenx/nxssh.exe><tt><font size=2>http://download.berlios.de/freenx/nxssh.exe</font></tt></a><tt><font size=2>
into my NX Client 3.4.0.5 <br>
> and I have it working fine if I don't have a passphrase on my private
<br>
> key.  If I have a passphrase, then authentication hangs (unsurprisingly).<br>
> <br>
> But has anyone got this setup working under Windows?  Leaving
aside for <br>
> one moment the fact that I would need an SSH_ASKPASS program for Windows
<br>
> - I can't even get nxssh to invoke an SSH_ASKPASS program - if I set
<br>
> SSH_ASKPASS to notepad.exe (and DISPLAY to a dummy value) just as
a <br>
> test, it never gets invoked.<br>
</font></tt>
<br><tt><font size=2>Hmmmmm well as </font></tt>
<br>
<br><tt><font size=2>        ssh-askpass</font></tt>
<br>
<br><tt><font size=2>is invoked by</font></tt>
<br>
<br><tt><font size=2>        ssh-add</font></tt>
<br>
<br><tt><font size=2>running against</font></tt>
<br>
<br><tt><font size=2>         ssh-agent
. . .</font></tt>
<br>
<br><tt><font size=2>then you will need to run ssh-agent first and then
ssh-add if</font></tt>
<br><tt><font size=2>you want to see it run.</font></tt>
<br>
<br><tt><font size=2>This needs to be done before you try to use the key.</font></tt>
<br>
<br><tt><font size=2>You also need to not be attached to a terminal . .
.</font></tt>
<br>
<br><tt><font size=2>> <br>
> Or alternatively, anyone managed to get this to work some other way,
(eg <br>
> cygwin ssh-agent?)<br>
</font></tt>
<br><tt><font size=2>nxclient for windows runs on cygwin so try:-</font></tt>
<br>
<br><tt><font size=2>        Installing cygwin
 **with openssh**</font></tt>
<br><tt><font size=2>        Start a shell
and run the following:-</font></tt>
<br><tt><font size=2>        </font></tt>
<br><tt><font size=2>           
    ssh-agent bash</font></tt>
<br><tt><font size=2>           
             (to export
the SSH_AUTH_SOCK=/tmp etc)</font></tt>
<br><tt><font size=2>        In the above new
bash shell run</font></tt>
<br>
<br><tt><font size=2>           
    ssh-add</font></tt>
<br>
<br><tt><font size=2>        and give the password
of the rsa_id key file.</font></tt>
<br>
<br><tt><font size=2>        Then in the same
shell run (your) nxagent with</font></tt>
<br><tt><font size=2>           
            the wrapped nxssh.exe
(now mxssh.exe)</font></tt>
<br>
<br><tt><font size=2>        </font></tt>
<br><tt><font size=2>        use @hostname</font></tt>
<br><tt><font size=2>        use your correct
username ont the NX machine</font></tt>
<br><tt><font size=2>        add a fake password
(it always wants one)</font></tt>
<br>
<br><tt><font size=2>        connect and see.
Let us know what happens.</font></tt>
<br>
<br><tt><font size=2>> <br>
> Regards<br>
> <br>
> roy<br>
> <br>
> -- <br>
> Roy Badami<br>
> Roboreus Ltd<br>
> 1 New Oxford Street<br>
> London WC1A 1NU<br>
</font></tt>