connection problems

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

connection problems

John Aldrich
Hello, all...
Cross-posting from the "RealVNC" list...

I've been a long-time user of VNC, but haven't used it  
in awhile. I'm trying to tunnel to my Fedora Core 6 box at home via  
PuTTY and it doesn't seem to be working. I can ssh to the linux box,  
but whenever I attempt to use VNC, I immediately get "the connection  
closed unexpectedly" and an offer to try again.

I've got VNC running on :1, and I'm trying to connect to 127.0.0.1:1  
using the Benjamin Weiss "how-to" that I've got mirrored on my  
personal internet account, but it doesn't seem to be working.

My office PC is running Windows XP Pro with no firewall configured,  
however, I *am* behind a Pix. That being said, if I'm able to SSH out,  
I'd think I should be able to connect over the tunnel.

 Here's the  
script I wrote to start the VNC server on my Fedora box:

vncserver  -geometry 1024x768 -localhost
vncconfig -nowin

and here's what I get when I do that:
[john@slave1 john_old]$ ./vserver

New 'slave1:1 (john)' desktop is slave1:1

Starting applications specified in /home/john/.vnc/xstartup
Log file is /home/john/.vnc/slave1:1.log

vncconfig: unable to open display ""


I think the last time I used VNC I may have been using Core 4 or 5 (I  
tend to skip versions <G>)

I just tried telnetting to 127.0.0.1 5901 and didn't get anything,  
which leads me to believe that 1) VNC is not running on the linux box  
("PS -aux" says it is) or 2)I didn't set my tunnel up right.

Any ideas? Please feel free to ask question. It's been awhile since I  
did this, so I may have overlooked something.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
___________________________________________________________
TightVNC mailing list, [hidden email]
To change your subscription or to UNSUBSCRIBE, please visit
https://lists.sourceforge.net/lists/listinfo/vnc-tight-list
Reply | Threaded
Open this post in threaded view
|

Re: connection problems

Constantin Kaplinsky
Hello John,

>>>>> John Aldrich wrote:

> vncserver  -geometry 1024x768 -localhost
> vncconfig -nowin
>
> and here's what I get when I do that:
> [john@slave1 john_old]$ ./vserver
>
> New 'slave1:1 (john)' desktop is slave1:1
>
> Starting applications specified in /home/john/.vnc/xstartup
> Log file is /home/john/.vnc/slave1:1.log

It seems like Xvnc has started fine (see the log as well).

> vncconfig: unable to open display ""

I'm not familiar with the vncconfig utility syntax, TightVNC does not
use it. :)

> I just tried telnetting to 127.0.0.1 5901 and didn't get anything,
> which leads me to believe that 1) VNC is not running on the linux box
> ("PS -aux" says it is) or 2)I didn't set my tunnel up right.

If Xvnc is not running, then telnetting will result in "Connection
refused". If it just times out, it would be a good idea to search for
firewall settings (firewall is enabled by default in Fedora Code, but
I'm not sure if it's enabled on the loopback interface as well).

--
With Best Wishes,
Constantin


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
___________________________________________________________
TightVNC mailing list, [hidden email]
To change your subscription or to UNSUBSCRIBE, please visit
https://lists.sourceforge.net/lists/listinfo/vnc-tight-list
Reply | Threaded
Open this post in threaded view
|

Re: connection problems

John Aldrich
On Sunday 23 September 2007, you wrote:

> Hello John,
>
> >>>>> John Aldrich wrote:
> >
> > vncserver  -geometry 1024x768 -localhost
> > vncconfig -nowin
> >
> > and here's what I get when I do that:
> > [john@slave1 john_old]$ ./vserver
> >
> > New 'slave1:1 (john)' desktop is slave1:1
> >
> > Starting applications specified in /home/john/.vnc/xstartup
> > Log file is /home/john/.vnc/slave1:1.log
>
> It seems like Xvnc has started fine (see the log as well).
>
> > vncconfig: unable to open display ""
>
> I'm not familiar with the vncconfig utility syntax, TightVNC does not
> use it. :)
It's just a way to show the controls. :-)

>
> > I just tried telnetting to 127.0.0.1 5901 and didn't get anything,
> > which leads me to believe that 1) VNC is not running on the linux box
> > ("PS -aux" says it is) or 2)I didn't set my tunnel up right.
>
> If Xvnc is not running, then telnetting will result in "Connection
> refused". If it just times out, it would be a good idea to search for
> firewall settings (firewall is enabled by default in Fedora Code, but
> I'm not sure if it's enabled on the loopback interface as well).
>
Well, while SSH-ed into my linux box, I tried telnetting to 127.0.0.1 5901 and
it came up with the "RFB" prompt, so that tells me that XVNC is running. I
just tried again from my wife's PC on the same LAN, and it doesn't work
either, so I know it's not my router. :-)

Here's what the PuTTY log says:
2007-09-23 15:32:21     Looking up host "192.168.0.50"
2007-09-23 15:32:21     Connecting to 192.168.0.50 port 22
2007-09-23 15:32:22     Server version: SSH-2.0-OpenSSH_4.3
2007-09-23 15:32:22     We claim version: SSH-2.0-PuTTY_Release_0.59
2007-09-23 15:32:22     Using SSH protocol version 2
2007-09-23 15:32:22     Doing Diffie-Hellman group exchange
2007-09-23 15:32:22     Doing Diffie-Hellman key exchange with hash SHA-1
2007-09-23 15:32:22     Host key fingerprint is:
(SNIP)
2007-09-23 15:32:22     Initialised AES-256 SDCTR client->server encryption
2007-09-23 15:32:22     Initialised HMAC-SHA1 client->server MAC algorithm
2007-09-23 15:32:22     Initialised AES-256 SDCTR server->client encryption
2007-09-23 15:32:22     Initialised HMAC-SHA1 server->client MAC algorithm
2007-09-23 15:32:26     Sent password
2007-09-23 15:32:27     Access denied
2007-09-23 15:32:30     Sent password
2007-09-23 15:32:30     Access granted
2007-09-23 15:32:30     Opened channel for session
2007-09-23 15:32:30     Local IPv4 port 5901 forwarding to localhost:5901
2007-09-23 15:32:30     Allocated pty (ospeed 38400bps, ispeed 38400bps)
2007-09-23 15:32:30     Started a shell/command
2007-09-23 15:33:26     Opening forwarded connection to localhost:5901
2007-09-23 15:33:26     Forwarded connection refused by server:
Administratively prohibited [open failed]
~




-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
___________________________________________________________
TightVNC mailing list, [hidden email]
To change your subscription or to UNSUBSCRIBE, please visit
https://lists.sourceforge.net/lists/listinfo/vnc-tight-list
Reply | Threaded
Open this post in threaded view
|

Re: connection problems

Constantin Kaplinsky
Hello John,

>>>>> John Aldrich wrote:

> 2007-09-23 15:33:26     Opening forwarded connection to localhost:5901
> 2007-09-23 15:33:26     Forwarded connection refused by server:
> Administratively prohibited [open failed]

I've just tried similar configuration. I've started Xvnc (TightVNC
1.3.9) like this:

$ vncserver -geometry 1280x1024 -localhost

New 'X' desktop is gw.tightvnc.com:2

Then, I've started PuTTY with local port forwarding:

L5902 localhost:5902

Then, connected with PuTTY and directed vncviewer (TightVNC 1.3.9 for
Windows) to localhost:2.

Everything worked fine -- I connected to Xvnc via an encrypted PuTTY
tunnel.

--
With Best Wishes,
Constantin

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
___________________________________________________________
TightVNC mailing list, [hidden email]
To change your subscription or to UNSUBSCRIBE, please visit
https://lists.sourceforge.net/lists/listinfo/vnc-tight-list
Reply | Threaded
Open this post in threaded view
|

RE: connection problems

James Weatherall
In reply to this post by John Aldrich
> 2007-09-23 15:33:26     Forwarded connection refused by server:
> Administratively prohibited [open failed] ~

This indicates that your SSH server is (mis-)configured not to support
forwarded connections, rather than any problem with VNC. :)

Cheers,

Wez @ RealVNC Ltd


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
___________________________________________________________
TightVNC mailing list, [hidden email]
To change your subscription or to UNSUBSCRIBE, please visit
https://lists.sourceforge.net/lists/listinfo/vnc-tight-list