Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Jul 2000 23:27:28 -0400
From:      Jim Mercer <jim@reptiles.org>
To:        Tony Finch <dot@dotat.at>
Cc:        hackers@freebsd.org
Subject:   Re: patch for openssh to work with pty-redir
Message-ID:  <20000713232727.E677@reptiles.org>
In-Reply-To: <E13CtRt-0006Ga-00@chiark.greenend.org.uk>; from dot@dotat.at on Fri, Jul 14, 2000 at 01:35:25AM %2B0100
References:  <20000713182202.C677@reptiles.org> <E13CtRt-0006Ga-00@chiark.greenend.org.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000713232727.E677>