From owner-freebsd-hackers Thu Jul 13 20:28: 3 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mailbox.reptiles.org (mailbox.reptiles.org [198.96.117.155]) by hub.freebsd.org (Postfix) with ESMTP id 0205837BCD5 for ; Thu, 13 Jul 2000 20:28:00 -0700 (PDT) (envelope-from jim@reptiles.org) Received: from localhost (2241 bytes) by mailbox.reptiles.org via sendmail with P:stdio/R:bind_hosts/T:inet_zone_bind_smtp (sender: ) (ident using unix) id for ; Thu, 13 Jul 2000 23:27:28 -0400 (EDT) (Smail-3.2.0.108 1999-Sep-19 #3 built 1999-Oct-27) Date: Thu, 13 Jul 2000 23:27:28 -0400 From: Jim Mercer To: Tony Finch Cc: hackers@freebsd.org Subject: Re: patch for openssh to work with pty-redir Message-ID: <20000713232727.E677@reptiles.org> References: <20000713182202.C677@reptiles.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: ; from dot@dotat.at on Fri, Jul 14, 2000 at 01:35:25AM +0100 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Jul 14, 2000 at 01:35:25AM +0100, Tony Finch wrote: > Hmm, I was confused for a while there by your reversed patch, but I know > where we are now :-) yeah, sorry, i should have verified i got the polarity right. > I had a similar problem with user-ppp over ssh talking to an sshd on > OpenBSD. The problem turned out to be that if sshd gives you a pty then > stdin and stdout are the same bidirectional descriptor (so ppp works) > but if that isn't the case then sshd uses two pipes in a unidirectional > fashion. FreeBSD's sshd (since March in -CURRENT and April in 4.x) has > a tweaked includes.h that doesn't #define USE_PIPES, so stdin is always > bidirectional and ppp over ssh works. If your sshd is compiled in this > way then you shouldn't need pty-redir either (although I can't find > the source to check that it does what I think it does). i'm doing this one 4.0-stable, and what you are saying is that it should work. i have not been able to get it going with openssh, without the hack. is there some incantation of ssh i'm not aware of where i can do something like: ssh -h remhost --local-exec "/usr/sbin/pppd" --remote-exec "/usr/sbin/pppd" otherwise, how do you escape using something like pty-redir? > Thanks to Brian "ppp over ssh over httptunnel" Somers for the explanation! i poked about awfulhak.org and don't really get the reference. -- [ Jim Mercer jim@reptiles.org +1 416 410-5633 ] [ Reptilian Research -- Longer Life through Colder Blood ] [ Don't be fooled by cheap Finnish imitations; BSD is the One True Code. ] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message