Author: James Courtier-Dutton Date: To: Hampshire LUG Discussion List Subject: Re: [Hampshire] using SSH to allow VNC from the SSH server to the
initiators machine
2008/9/4 Chris Smith <cjs94@???>: > Alan Bell wrote:
>>
>> The remote user is running Ubuntu so can go to their remote desktop
>> preferences and turn on their VNC server, that is fine, but I can't see
>> their computer at all, certainly not on port 5900. I know SSH can tunnel
>> stuff, but I am not quite sure how to set up the routes or ports to get
>> back along the tunnel to the initiator from the server end.
>> Has anyone done this sort of thing? Or has a better solution?
>
> ssh -R5900:localhost:5900 user@yourmachine
>
> When executed from the remote user's machine should do exactly what you
> want. You should then be able to start a VNC connection to port 5900 on
> your machine, which will then be forwarded over the ssh connection.
>
But it two of your users connect at the same time, only the first will
have the 5900 port link.