From owner-freebsd-questions Wed Jan 9 9:43:51 2002 Delivered-To: freebsd-questions@freebsd.org Received: from point.osg.gov.bc.ca (point.osg.gov.bc.ca [142.32.102.44]) by hub.freebsd.org (Postfix) with ESMTP id 87C3737B41A; Wed, 9 Jan 2002 09:43:35 -0800 (PST) Received: (from daemon@localhost) by point.osg.gov.bc.ca (8.8.7/8.8.8) id JAA02562; Wed, 9 Jan 2002 09:43:32 -0800 Received: from passer.osg.gov.bc.ca(142.32.110.29) via SMTP by point.osg.gov.bc.ca, id smtpda02560; Wed Jan 9 09:43:17 2002 Received: (from uucp@localhost) by passer.osg.gov.bc.ca (8.11.6/8.9.1) id g09HhCS28938; Wed, 9 Jan 2002 09:43:12 -0800 (PST) Received: from UNKNOWN(10.1.2.1), claiming to be "cwsys.cwsent.com" via SMTP by passer9.cwsent.com, id smtpdP28934; Wed Jan 9 09:42:21 2002 Received: (from uucp@localhost) by cwsys.cwsent.com (8.11.6/8.9.1) id g09HgKb89091; Wed, 9 Jan 2002 09:42:20 -0800 (PST) Message-Id: <200201091742.g09HgKb89091@cwsys.cwsent.com> Received: from localhost.cwsent.com(127.0.0.1), claiming to be "cwsys" via SMTP by localhost.cwsent.com, id smtpdA89087; Wed Jan 9 09:42:10 2002 X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 Reply-To: Cy Schubert - ITSD Open Systems Group From: Cy Schubert - ITSD Open Systems Group X-Sender: schubert To: Chris Shenton Cc: Cy Schubert - ITSD Open Systems Group , "Alexander N. Kabaev" , freebsd-security@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG, green@FreeBSD.ORG Subject: Re: SSH TCP forwarding: works with v1, not with v2 ssh In-reply-to: Your message of "09 Jan 2002 11:43:09 EST." <87y9j7qxuq.fsf@thanatos.shenton.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 09 Jan 2002 09:42:10 -0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message <87y9j7qxuq.fsf@thanatos.shenton.org>, Chris Shenton writes: > > In message <3C3A4338.80003@bellatlantic.net>, "Alexander N. Kabaev" > > writes: > > > Could you please try the following patch from OpenBSD CVS and post > > > your results here? Who knows, > > > maybe release engineers will consider including it into upcoming > > > 4.5-RELEASE if it fixes problem > > > for you :) > > > http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/channels.c.diff?r1= > 1.10 > > > 9.2.1&r2=1.109.2.2 > > > > The patch fixes the problem for me. > > I feel like a newbie, but I can't tell how to rebuild just the openssh > contributed src, rather than the entire OS. Doing a basic make in the > dir fails: > > cd /usr/src/crypto/openssh/ > make -k > ===> lib > "Makefile", line 21: Malformed conditional ((${KERBEROS:L} == "yes")) > "Makefile", line 21: Missing dependency operator > "Makefile", line 23: Malformed conditional ((${AFS:L} == "yes")) > "Makefile", line 23: Missing dependency operator > "Makefile", line 26: if-less endif > "Makefile", line 26: Need an operator > "Makefile", line 27: if-less endif > "Makefile", line 27: Need an operator > make: fatal errors encountered -- cannot continue > *** Error code 1 (continuing) > > Compilation finished at Wed Jan 9 11:41:53 > > I expect I need to start somewhere above and specify the right target > but I'm out of my depth here. I'll rebuild the OS if needed, just > wanted to save time and get an answer back quickly. I use the following script to rebuild openssh. The script must be called Build-openssh, with links called Install-openssh and Clean-openssh. (It can also be used to rebuild IP Filter, Sendmail, and BIND.) #!/bin/sh - case $0 in */*-ipf) DIRS='/usr/src/sbin/ipf /usr/src/sbin/ipfstat /usr/src/sbin/ipmon /usr/src/sbin/ipnat /usr/src/usr.sbin/ipftest /usr/src/usr.sbin/ipresend /usr/src/usr.sbin/ipsend /usr/src/usr.sbin/iptest /sys/modules/ipfilter' # DIRS='/usr/src/sbin/ipf /usr/src/sbin/ipfstat /usr/src/sbin/ipmon /usr/src/sbin/ipnat /usr/src/usr.sbin/ipftest /usr/src/usr.sbin/ipresend /usr/src/usr.sbin/ipsend /usr/src/usr.sbin/iptest' ;; */*-sendmail) DIRS='/usr/src/lib/libsmdb /usr/src/lib/libsmutil /usr/src/libexec/mail.local /usr/src/usr.sbin/mailstats /usr/src/usr.sbin/makemap /usr/src/usr.sbin/praliases /usr/src/bin/rmail /usr/src/usr.sbin/sendmail /usr/src/libexec/smrsh /usr/src/usr.bin/vacation' ;; */*-bind) DIRS='/usr/src/lib/libisc /usr/src/lib/libbind /usr/src/usr.sbin/named /usr/src/usr.sbin/named.reload /usr/src/usr.sbin/named.restart /usr/src/libexec/named-xfer' ;; */*-openssh) DIRS='/usr/src/secure/lib/libssh /usr/src/secure/libexec/sftp-server /usr/src/secure/usr.bin/scp /usr/src/secure/usr.bin/ssh /usr/src/secure/usr.bin/ssh-add /usr/src/secure/usr.bin/ssh-agent /usr/src/secure/usr.bin/ssh-keygen /usr/src/secure/usr.sbin/sshd' ;; esac CMD=`basename $0` error() { echo $@ echo terminating abnormally exit 1 } echo for I in $DIRS; do case $CMD in Build-*) echo "***** Building $I *****" echo cd $I || error cannot cd to $I make cleandir || error make clean failed # we do this twice in case there is any cruft in /usr/src itself make cleandir || error make clean failed make obj || error make obj failed make || error make failed ;; Install-*) echo "***** Installing $I *****" echo cd $I || error cannot cd to $I unset MAKEINSTALLOPT case `uname -n` in cwtest|cwx) MAKEINSTALLOPT='-i';; esac make $MAKEINSTALLOPT install || error make install failed ;; Clean-*) echo "***** Cleaning $I *****" echo cd $I || error cannot cd to $I make cleandir || error make cleandir failed ;; esac echo done echo `basename $0` finished successfully Regards, Phone: (250)387-8437 Cy Schubert Fax: (250)387-5766 Team Leader, Sun/Alpha Team Email: Cy.Schubert@osg.gov.bc.ca Open Systems Group, ITSD Ministry of Management Services Province of BC FreeBSD UNIX: cy@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message