From owner-freebsd-hackers Thu Dec 12 14:35:13 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id OAA13565 for hackers-outgoing; Thu, 12 Dec 1996 14:35:13 -0800 (PST) Received: from bacall.lodgenet.com (bacall.lodgenet.com [205.138.147.242]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id OAA13518 for ; Thu, 12 Dec 1996 14:35:08 -0800 (PST) Received: (from mail@localhost) by bacall.lodgenet.com (8.6.12/8.6.12) id QAA18418; Thu, 12 Dec 1996 16:34:11 -0600 Received: from garbo.lodgenet.com(204.124.123.250) by bacall via smap (V1.3) id sma018409; Thu Dec 12 16:33:55 1996 Received: from jake.lodgenet.com (jake.lodgenet.com [10.0.11.30]) by garbo.lodgenet.com (8.6.12/8.6.9) with ESMTP id QAA06449; Thu, 12 Dec 1996 16:34:11 -0600 Received: from jake.lodgenet.com (localhost [127.0.0.1]) by jake.lodgenet.com (8.8.3/8.6.12) with ESMTP id QAA02971; Thu, 12 Dec 1996 16:34:27 -0600 (CST) Message-Id: <199612122234.QAA02971@jake.lodgenet.com> X-Mailer: exmh version 1.6.9 8/22/96 To: John Polstra Cc: hackers@freebsd.org Subject: Re: Fwd: CVSup with SSH In-reply-to: Your message of "Thu, 12 Dec 1996 14:24:38 PST." <199612122224.OAA01658@austin.polstra.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 12 Dec 1996 16:34:26 -0600 From: "Eric L. Hernes" Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk John Polstra writes: > >Following up once more on using the TCP forwarding of ssh to CVSup >through a firewall: > > >I tried a large update (src + ports from several days ago) using this >method, and it worked great! I am still astounded. Finally there's a >proxy that does what it is supposed to do, and does it right. Yeay! I just tried the cvs tree, and it looks ok. > >This should be _really_ useful to those poor souls who haven't been >able to get the SOCKS stuff working. I'm going to document it in the ;-) That's me! I whipped up a new fbsd-update script. I had to use expect, unless someone can help me out a bit with ssh from a script: ------------------cut--here----------------------- #!/usr/local/bin/expect set lport 6666 set cvsupfile $env(HOME)/lib/cvs-supfile.cvsup set d [exec date +%v] set cvsup $env(HOME)/var/log/cvsup-$d set cvs_co $env(HOME)/var/log/cvs_co-$d set ssh [spawn ssh -C -v -L 5999:localhost:5999 -R $lport:localhost:$lport freefall] expect "(tty..@freefall)\$ " exec cvsup -Z -g -L 2 -P $lport $cvsupfile >& $cvsup send -- "exit\r" ------------------end--of--script----------------- of course you'll have to edit the freefall prompt. Is there anyway to get this to work without actually logging in? > >John > >- -- > John Polstra jdp@polstra.com > John D. Polstra & Co., Inc. Seattle, Washington USA > "Self-knowledge is always bad news." -- John Barth > Thanks Tons! eric -- erich@lodgenet.com http://rrnet.com/~erich erich@rrnet.com