Seems the "Could not start SSH" was related to the port of SSH on Windows
trying to access /dev/null. By passing -N the tunnel is well opened,
however issue still remains:
"
debug1: Local forwarding listening on 127.0.0.1 port 49161.
debug1: channel 1: new [port listener]
debug1: Requesting [email protected]
debug1: forking to background
"
still tries to conect to localhost:1. The issue remains that it does not
take the forwarded port into account.
I have tried an ugly trick to force vncviewer to forward port to 5901 with
this command:
SET VNC_VIA_CMD=ssh.exe -f -v -N -L 5901:%%H:%%R %%G ^
-i proxyKey ^
-p 22 ^
-oTCPKeepAlive=yes -oServerAliveInterval=30 echo %%L
SSH connects and port is forwarded (confirmed with netstat). If I manually
start vnc afterwards to connect to localhost:1 it works but doing so with
the via command hangs forever (maybe it's trying to connect before the
tunnel is opened?).
2017-02-16 11:29 GMT-05:00 Quantum HPC <[email protected]>:
> Hi,
> Thanks for the feedback, I have tried with your suggestion and the viewer
> is still trying to connect to the orginal port:
>
> - With via:
> >the command is:
> SET VNC_VIA_CMD=ssh.exe -f -v -L %%L:%%H:%%R %%G ^
> -i proxyKey ^
> -p 22 ^
> -oStrictHostKeyChecking=no ^
> -oTCPKeepAlive=yes -oServerAliveInterval=30 sleep 20
> (I have tried without options also)
>
> > Starting VNC like this:
> cvncviewer.exe -via username@myRemoteAdress localhost:1
>
> In the debug I can see:
> "
> Authenticated to myRemoteAdress ([myRemoteAdress ]:22).
> debug1: Local connections to LOCALHOST:59288 forwarded to remote address
> localhost:5901
> debug1: Local forwarding listening on 127.0.0.1 port 59288.
> debug1: channel 1: new [port listener]
> debug1: open - CreateFile ERROR:3
> dup() in/out/err failed
> WARNING: Could not start SSH client to create tunnel
> "
>
> But TurboVNC is indicating: "connecting to localhost:1"
>
>
> - With tunnel:
> the command is:
> SET VNC_TUNNEL_CMD=ssh.exe -v -f -L %%L:localhost:%%R %%H ^
> -i proxyKey ^
> -p 22 ^
> -oStrictHostKeyChecking=no ^
> -oTCPKeepAlive=yes -oServerAliveInterval=30 sleep 20
>
> > Starting VNC like this:
> cvncviewer.exe -tunnel username@myRemoteAdress :1
>
> but this time ssh tries to connect to localhost.
>
> Trying echo instead of ssh the command is expanded as follow:
> -v -f -L 59125:localhost:5901 localhost -i proxyKey -p 22
> -oStrictHostKeyChecking=no -oTCPKeepAlive=yes -oServerAliveInterval=30
> sleep 20
>
>
> %%H seems to be replaced by localhost instead of gateway.
>
>
> Regards
>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
TurboVNC-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/turbovnc-users