From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1616 invoked by alias); 20 Jun 2011 13:37:12 -0000 Received: (qmail 1488 invoked by uid 22791); 20 Jun 2011 13:37:09 -0000 X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from nm17-vm0.bullet.mail.ne1.yahoo.com (HELO nm17-vm0.bullet.mail.ne1.yahoo.com) (98.138.91.58) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Mon, 20 Jun 2011 13:36:50 +0000 Received: from [98.138.90.50] by nm17.bullet.mail.ne1.yahoo.com with NNFMP; 20 Jun 2011 13:36:49 -0000 Received: from [98.138.226.129] by tm3.bullet.mail.ne1.yahoo.com with NNFMP; 20 Jun 2011 13:36:49 -0000 Received: from [127.0.0.1] by smtp216.mail.ne1.yahoo.com with NNFMP; 20 Jun 2011 13:36:49 -0000 X-Yahoo-SMTP: Uu383n6swBCEN1G9up0WSnxbvN8fCPmk Received: from [10.0.0.4] (reply-to-list-only-lh@108.7.36.4 with plain) by smtp216.mail.ne1.yahoo.com with SMTP; 20 Jun 2011 06:36:49 -0700 PDT Message-ID: <4DFF4CF2.2020805@cygwin.com> Date: Mon, 20 Jun 2011 13:37:00 -0000 From: "Larry Hall (Cygwin)" Reply-To: cygwin@cygwin.com User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.17) Gecko/20110414 Lightning/1.0b2 Mnenhy/0.8.3 Thunderbird/3.1.10 ThunderBrowse/3.3.5 MIME-Version: 1.0 To: cygwin@cygwin.com Subject: Re: windows-to-windows openssh buffering issue References: , In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2011-06/txt/msg00238.txt.bz2 On 6/19/2011 4:36 AM, Nathan Ridge wrote: > > On Sat, 18 Jun 2011 23:31:12, Larry Hall wrote > >> On 6/18/2011 5:25 AM, Nathan Ridge wrote: >> >>> On Fri, 17 Jun 2011 11:52:35, Larry Hall wrote: >>> >>>> On 6/16/2011 10:20 PM, Nathan Ridge wrote: >>>> >>>>> Is there some setting for OpenSSH on the server side that would allow >>>>> me to run the program on machine B in native-windows non-pty mode >>>>> so that the buffering is fine? If not, what else can I do? >>>> >>>> No. OpenSSH uses ptys - it doesn't matter what terminal or console you're >>>> using. I don't know of a way to make OpenSSH behave the way you want it to >>>> with Windows console programs. >>> >>> Is this issue particular to OpenSSH, or is ssh-ing into to a windows machine >>> a lost cause in general? >>> >> Since non-Cygwin executables don't understand ptys, they think they are >> dealing with a pipe and so they buffer their output. It's not specific >> to OpenSSH. You'd see the same issue running these programs under xterm >> or mintty. I personally wouldn't define anything about this particular >> issue as a "lost cause" but YMMV. Quite some time ago there was an attempt >> to smooth out this issue with a utility call ttyfier but it had it's issues >> and has pretty much disappeared. I don't know of any other aids out there, >> though that doesn't mean there isn't something . The only things I can >> suggest are that you make sure there's not some Cygwin utility that does what >> you want or that you write something that does. > > What I meant was, is it possible to write a different SSH server implementation > for windows - perhaps a native one - that doesn't suffer from this problem? > (And if so, do you know of one?) Or would all attempts at an SSH server > implementation run into this issue? ptys are a means to an end. They are not a requirement to implement SSH or anything else for that matter, if that's what you're asking. I'm not aware of many other SSH implementations on Windows. MKS and SFU each have one. I haven't used them though. -- Larry _____________________________________________________________________ A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting annoying in email? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple