Help!

Vnc problem with port forwarding

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Security RSS
Next:  Open Ports-FW settins  
Author Message
niraj
External


Since: Feb 20, 2007
Posts: 4



PostPosted: Tue Feb 20, 2007 5:54 am    Post subject: Vnc problem with port forwarding
Archived from groups: comp>os>linux>security (more info?)

Hi,
I could not connect to the vnc server through port forwaring . I have
a linux_server (on which sshd server is running) and vnc_server(vnc
server is running)

1. Run the vncserver on the vnc_server(In my case terminal four is
running its list).
2. Configure the linux_server /etc/ssh/sshd_config with "GatewayPorts
yes" then restart the sshd.
3. Configure the vncserver machine for remote listening with
ssh -R 5904:localhost:5900 linux_server .(My vnc_server is running on
the 5904 and i m executing command from the vnc_server )
4. Then i try to connect to the vnc_server with the linux_server .

But this is not working.

TIA
Niraj Kumar
Back to top
buck
External


Since: Mar 31, 2004
Posts: 119



PostPosted: Tue Feb 20, 2007 10:24 pm    Post subject: Re: Vnc problem with port forwarding [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 20 Feb 2007 05:54:36 -0800, "niraj" <niraj.kumar.ait.TakeThisOut@gmail.com>
wrote:

snip
>ssh -R 5904:localhost:5900 linux_server .(My vnc_server is running on

Think you want
ssh -C -g -L 5904:localhost:5900 linux_server

Although distribution setups differ, the Slackware boxes I run do not
need any changes at all to ssh config, but hosts.allow needs to OK
this:
sshd: allowedIP/netmask

--
buck
Back to top
niraj
External


Since: Feb 20, 2007
Posts: 4



PostPosted: Wed Feb 21, 2007 10:15 pm    Post subject: Re: Vnc problem with port forwarding [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Feb 21, 11:24 am, buck <b... RemoveThis @private.mil> wrote:
> On 20 Feb 2007 05:54:36 -0800, "niraj" <niraj.kumar.... RemoveThis @gmail.com>
> wrote:
>
> snip
>
> >ssh -R 5904:localhost:5900 linux_server .(My vnc_server is running on
>
> Think you want
> ssh -L 5904:localhost:5900 linux_server
>
> Although distribution setups differ, the Slackware boxes I run do not
> need any changes at all to ssh config, but hosts.allow needs to OK
> this:
> sshd: allowedIP/netmask
>
> --
> buck

It worked on my end .Actually I was making mistake
> ssh -L 5904:localhost:5900 linux_server
it should be ssh -L 5900:localhost:5904 linux_server

Niraj
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Security All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum