Re: SSH, VNC and a Router

From: B. Joshua Rosen (bjrosen@polybus.com)
Date: 04/11/03


From: "B. Joshua Rosen" <bjrosen@polybus.com>
Date: Fri, 11 Apr 2003 12:52:03 -0400

On Thu, 10 Apr 2003 19:21:21 -0400, Adam Krumholz wrote:

> VNC, SSH and a LinkSys Router
> After reading the many post covering SSH, VNC and rounters I got my
> connection to work. But, I don't understand one step.
>
> Step 1: On my LinkSys router I forward port 22 and 5901 to my Linux PC
> Step 2: On the Linux PC I run vncserver, and sshd Step 3: From my work
> PC I run SSH with the following switch: ssh workerbee@12.248.17.45
> -L5901:12.248.17.45:5901
>
> Step 4: run the viewer on my work pc using localhost:5901
>
>
> An X windows session starts and every thing is ok. I am a newbie and
> what I don't under stand is why I need to forward port 5901 from my
> router to the Linux PC. I tried the above setup without 5901 forwarded
> and I was unable to make a connection. If I am tunneling, shouldn't
> fowrding port 22 be enough ? And is my setup forwarding 5901 still using
> SSH(port 22) and secure ?
>
> Router: LinkSys Router BEFSR41
> Linux OS RedHat 9
> Work PC: Windows XP
>
> Thanks in advance
 
You don't need VNC at all, it's much more effcient to just do X
forwarding. Do

ssh -X -C workerbee@12.248.17.45

The -X switch will open an X tunnel, -C does compression which is useful
when you are using an internet connection.

If your work machine is also Linux you don't have to do anything special
except to do a xhost + so that you can run an X window from the remote
machine. If you are sitting on a Windoze machine you will need an
Xserver. If you don't already have an Xserver on your machine install
cygwin, it includes Xfree86.



Relevant Pages

  • Re: Remote Desktop Connection
    ... You can try a free two user version of SSL-Explorer to try it out. ... SSL-Explorer also supports a web based RDC and VNC access to desktop PCs on your network. ... OpenVPN is completely free like SSH. ... What if i have a linkys WiFi router, and does not have vpn feature, how could i secure the connection? ...
    (microsoft.public.windowsxp.work_remotely)
  • Re: Remote access PC support
    ... >>You can always tunnel the VNC connection through SSH. ... Naturally, if you do not have a firewall box to SSH into first, ... Double click PuTTY and enter the hostname or IP of your firewall ...
    (Debian-User)
  • Re: Connecting to a Mac from a remote PC
    ... What kind of connection do you want to do? ... The host machine a Mac has a fixed IP address. ... the best bet is ssh connections. ... The alternative for Screen, keyboard, mouse is VNC and if going ...
    (comp.sys.mac.comm)
  • Re: [SLE] VNC and sharing desktops
    ... Connection, not Share Desktop ... > Has anyone spent any time playing with VNC and the KDE Share ... > out Linux is encountering a minor annoyance with it. ... The CPU load is very high even when it's sitting idle He's ...
    (SuSE)
  • vnc tunneling over ssh
    ... I try to tunnel a vnc connection over ssh in order to get trough a firewall: ... Which starts the vnc server on port 5901 on vnc_server, ... The problem can not be in SSH, because if I do X11 forwarding via SSH ...
    (comp.os.linux.networking)