Re: SSH, VNC and a Router
From: B. Joshua Rosen (bjrosen@polybus.com)
Date: 04/11/03
- Next message: Thomas Binder: "Re: puTTY utf-8 copy/paste problem"
- Previous message: David t: "Re: Putty save and load session-where is that stored?"
- In reply to: Adam Krumholz: "SSH, VNC and a Router"
- Next in thread: some girl: "Re: SSH, VNC and a Router"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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.
- Next message: Thomas Binder: "Re: puTTY utf-8 copy/paste problem"
- Previous message: David t: "Re: Putty save and load session-where is that stored?"
- In reply to: Adam Krumholz: "SSH, VNC and a Router"
- Next in thread: some girl: "Re: SSH, VNC and a Router"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|