Re: SSH, VNC and a Router

From: some girl (some_girl_at_hotmail.net)
Date: 04/26/03


Date: Sat, 26 Apr 2003 05:49:02 GMT

You have to forward port 5901 because you are forwarding from the wan ip
port.

Do this instead:
ssh workerbee@12.248.17.45 -L5901:127.0.0.1:5901

Now you only need forward port 22

"Adam Krumholz" <adamkrumholz@NOSPAMattbi.com> wrote in message
news:R%mla.137728$OV.227868@rwcrnsc54...
> 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
>
>



Relevant Pages

  • Re: Openssh Port Forwarding Confusion
    ... >Now for my Port forwarding question. ... So far what I have extracted about ssh port ... You connect to a port on the SSH client. ...
    (comp.security.ssh)
  • Re: Port forwarding and ssh
    ... >> the only problem was from my NAT router which does ... >> machine by ssh and port forwarding and i try to ssh ...
    (Fedora)
  • Re: [SLE] tunneling through an intermediate host
    ... SSH to the gateway as usual, setting up a forwarded port to ... >> enable X forwarding on this first connection since it doesn't ... >> sound like you're actually running anything X from the gateway. ...
    (SuSE)
  • Re: Unix-domain port forwarding with openssh
    ... Hmmmmm...why port forwarding? ... >like it would be an easy feature to add to ssh. ... your app's daemon, you could just run your app as an SSH command. ...
    (comp.security.ssh)
  • Re: ssh gives "Permission denied, please try again"
    ... port 22 on your internal machine, so you will need to keep ssh up to ... I configure the router to forward a different external port to 22 on my ... For good measure pick usernames that are none obvious, ... root/password: 163 times ...
    (uk.comp.os.linux)