channel 2: connection failed problem

From: S. Eng (ngse@yahoo.com)
Date: 03/06/03


From: ngse@yahoo.com (S. Eng)
Date: 6 Mar 2003 14:38:40 -0800

Hi.. I would really appreciate some help.
My office computer runs Win2K. (ip 128.220.18.11) I installed openssh
from www.networksimplicity.com I can ssh from my notebook (Mac
powerbook) into my office machine. I am also do the vncviewer into the
windows machine. However, I cannot use vncviewer via ssh into the
Win2K. I also cannot use the vncviewer via ssh into the Win2K from a
Linux machine. I suspect it is a problem with either the sshd server
on thw win2K or the vncserver on the win2K. I have already added the
'AllowLoopback' and 'LoopbackOnly' to the registry.

Here is what I did:
ssh -L 5900:128.20.18.11:5900 128.20.18.11 myname@128.220.18.11

The authentication goes through, i get a prompt telling me i am in
c:\openssh

Then I start "vncviewer localhost:0"
and nothing happens.
But in the ssh session, I see messages telling me "channel 2
:connection refused" as I start vncviewer.

Can some give me some guidance what to do?

Thanks in advance

debug1: Connections to local port 5900 forwarded to remote address
128.220.18.11:5900
debug1: Local forwarding listening on 127.0.0.1 port 5900.
debug1: fd 4 setting O_NONBLOCK
debug1: channel 0: new [port listener]
debug1: channel 1: new [client-session]
debug1: send channel open 1
debug1: Entering interactive session.
debug1: ssh_session2_setup: id 1
debug1: channel request 1: pty-req
debug1: channel request 1: shell
debug1: fd 3 setting TCP_NODELAY
debug1: channel 1: open confirm rwindow 0 rmax 32768
Last login: Thu Mar 6 11:08:15 2003 from sngnb.econ.jhu.edu
Microsoft Windows 2000 [Version 5.00.2195]
(C) Copyright 1985-2000 Microsoft Corp.

C:\OpenSSH\bin>debug1: Connection to port 5900 forwarding to
128.220.18.11 port 5900 requested.
debug1: fd 8 setting TCP_NODELAY
debug1: channel 2: new [direct-tcpip]
channel 2: open failed: connect failed: Connection refused
debug1: channel_free: channel 2: direct-tcpip: listening port 5900 for
128.220.18.11 port 5900, connect from 127.0.0.1 port 49185, nchannels
3



Relevant Pages

  • Tru64 Unix v5.1B SSH2D chroot environment
    ... The ssh daemon that came with the system has this feature. ... I can only imagine that the client software is ... Opened channel for session ... debug1: ssh-userauth2 successful: method password ...
    (comp.unix.tru64)
  • Trouble with ssh secure tunnel for VNC
    ... "work" using VNC through a ssh tunnel with port forwarding. ... on work and issuing the command 'vncviewer work:1' from home. ... debug1: Connections to local port 5902 forwarded to remote address work:5901 ... debug1: channel 2: new ...
    (comp.security.ssh)
  • Re: Trouble using VNC thru a ssh tunnel
    ... "work" using VNC through a ssh tunnel with port forwarding. ... > debug1: fd 8 setting TCP_NODELAY ... > debug1: channel 2: obuf empty ... > on both machines for a short period of time, ...
    (comp.os.linux.security)
  • Are remote pipes fixed in 3.5?
    ... > and ssh will never return. ... SSH2 will shut down the channel without telling the ... > remote side that stdout has closed. ... > debug1: channel request 0: exec ...
    (SSH)
  • Trouble using VNC thru a ssh tunnel
    ... "work" using VNC through a ssh tunnel with port forwarding. ... debug1: Connections to local port 5902 forwarded to remote address ... debug1: channel 2: new ...
    (comp.os.linux.security)

Loading