From owner-freebsd-questions@FreeBSD.ORG Thu Jan 29 06:50:42 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B899016A4CF for ; Thu, 29 Jan 2004 06:50:42 -0800 (PST) Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by mx1.FreeBSD.org (Postfix) with ESMTP id 41F3B43D48 for ; Thu, 29 Jan 2004 06:50:39 -0800 (PST) (envelope-from freebsd-questions@m.gmane.org) Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1AmDV8-0003Oo-00 for ; Thu, 29 Jan 2004 15:50:38 +0100 Received: from gw-primedia.cowles.com ([199.172.45.60]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu Jan 29 14:50:38 2004 Received: from scott by gw-primedia.cowles.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu Jan 29 14:50:38 2004 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: "Scott I. Remick" Date: Thu, 29 Jan 2004 09:50:58 -0500 Lines: 70 Message-ID: <2jr9oq9mw1z$.7gbykfrw4bt8$.dlg@40tude.net> References: <115pumjhydr2n.1o8ac6dits3ij$.dlg@40tude.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org Gmane-NNTP-Posting-Host: gw-primedia.cowles.com X-Archive: encrypt User-Agent: 40tude_Dialog/2.0.5.1 Sender: news Subject: Re: Upgraded 5.1 -> 5.2, now VNC over SSH fails w/ TCP_NODELAY X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: scott@sremick.net List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jan 2004 14:50:42 -0000 On Tue, 20 Jan 2004 11:42:28 -0500, Scott I. Remick wrote: > Well crap, everything was going so well. I upgraded from 5.1 to 5.2 using > cvsup, recompiled (nearly) all my ports (some KDE stuff is still > complaining, but that shouldn't be relevant here). I have openssh installed > via ports: > > su-2.05b# pkg_info | grep ssh > openssh-3.6.1_5 OpenBSD's secure shell client and server (remote login > prog > > And my /etc/rc.conf contains: > > sshd_enable="YES" > sshd_program="/usr/local/sbin/sshd" > > Under 5.1, I'd SSH in (via PuTTY), then use port-forwarding to forward > localhost:7001 to remote:5901. I could then run VNC, connect to > localhost:7001, and tunnel my VNC session over SSH. > > Since upgrading to 5.2 (nothing else has changed), while I can still SSH > in, attempting to tunnel VNC fails and I get the following error in my > PuTTY log: > > 2004-01-20 11:34:21 Opening forwarded connection to localhost:5901 > 2004-01-20 11:34:22 Forwarded connection refused by server > > On the FreeBSD box, I see: > > Jan 20 11:33:57 scott sshd[78580]: error: getsockopt TCP_NODELAY: > Connection reset by peer > > This is using the same configs, profiles, etc. Nothing has changed except > the upgrade of the FreeBSD box from 5.1 to 5.2. Any thoughts? Sorry to reply to my own post, but I'm still stuck and had more info to offer. I've also tried adding the following line to my rc.conf: sshd_flags="-f /usr/local/etc/ssh/sshd_config" And in that sshd_config file, I added the following lines: GatewayPorts yes Although I'm not sure this applies. It's definitely using that config: su-2.05b# ps -ax | grep sshd 426 ?? Is 0:00.07 /usr/local/sbin/sshd -f /usr/local/etc/ssh/sshd_config 1807 ?? Is 0:00.03 sshd: scott [priv] (sshd) 1809 ?? R 0:00.07 sshd: scott@ttyp0 (sshd) vncserver is definitely running: su-2.05b# ps -ax | grep vnc 1798 p0- S 0:00.23 Xvnc :1 -desktop X -httpd /usr/X11R6/share/tightvnc/classes -auth /home/scott Also: su-2.05b# strobe -b 5900 -e 6000 localhost strobe 1.05 (c) 1995-1999 Julian Assange . localhost 5901 unassigned unknown -> RFB 003.003\n I've also confirmed that I can VNC in using another PC on the local network. But none of this has helped and I still get the error when I try to tunnel VNC over ssh.