Linux Debian support - vnc over ssh with etch xorg xvnc4server

This is Interesting: Free IT Magazines  
Home > Archive > Linux Debian support > June 2007 > vnc over ssh with etch xorg xvnc4server





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author vnc over ssh with etch xorg xvnc4server
carex

2007-05-28, 7:12 am

Hello,

Everything was fine with woody and sarge but it is not with Etch.

The problem:
I always started vncserver like this on every remote servers running
sarge : vncserver -localhost -geometry 1020x710 :1
(to avoid any direct connection)

And from my laptop runnning winxp/putty/tightvncviewer I made first
an ssh connection with port forwarding to one of those servers
(eg. local port 1234 to myserver:5901)
Then I could start vncviewer with something like "localhost::1234.

This is still working perfectly whith sarge.

Recently I started a new server with etch,Xorg,vnc4server
I did start vncserver like above.

Now, when I want to connect to my new server from a linux station
with ssh -f -N -L1234:localhost:5901 newserver and vncviewer everything
is still ok.
But when I want to connect to my new server from my laptop/winxp/putty
I always get a "connection closed unexpectedly"

Nothing has been changed in the config on my laptop.
And my laptop has no problem with a connection with the sarge servers.
(neither with the RHE3 servers)

The only solution I found was to start the vncserver without the
"-localhost" option.
Without this option the connection between laptop/server_etch is ok
when I use winxp/putty/tightvnc

Today, I try the same config at home with another server running etch
and another laptop running winXP/sarge
The result is the same.
The connection is not possible with winxp/putty/tightvnc between the
laptop/etch_server if the vncserveris started with -localhost !!

The ssh connection is always successful (winxp/putty or debian/ssh)
The problem is with vnc.
Is it something caused by xorg ?

I did try with 2 different vnc clients (tight and real) but without
success.


Has someone experienced the same difficulties with etch,xorg/vncserver ???


Thanks to all,
carex
Linonut

2007-05-29, 7:12 am

After takin' a swig o' grog, carex belched out this bit o' wisdom:

> sarge : vncserver -localhost -geometry 1020x710 :1
> (to avoid any direct connection)


I've never seen that -localhost option.

I tend to like the tightvncserver/xtightvncclient combo, rather than the
"regular" vnc, which is (I think) actually realvnc.

> The only solution I found was to start the vncserver without the
> "-localhost" option.
> Without this option the connection between laptop/server_etch is ok
> when I use winxp/putty/tightvnc
>
> I did try with 2 different vnc clients (tight and real) but without
> success.

carex

2007-06-01, 1:13 am

On Tue, 29 May 2007 11:26:29 +0000, Linonut wrote:
[vbcol=seagreen]
> After takin' a swig o' grog, carex belched out this bit o' wisdom:
>
>
> I've never seen that -localhost option.
>
> I tend to like the tightvncserver/xtightvncclient combo, rather than the
> "regular" vnc, which is (I think) actually realvnc.
>

The option -localhost is used to make impossible to connect directly
from the outside to socket 5901. Only connection from the localhost are
permitted. This option is usually used in combination with port
forwarding with ssh. More info about -localhost in man Xvnc

But it does still not work on my 2 machines where Etch is installed.

carex.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com