From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Ehud Karni" Newsgroups: gmane.emacs.devel Subject: Re: Fw: [h-e-w] Emacs and ssh Date: Mon, 21 Feb 2005 18:10:17 +0200 Organization: Mivtach-Simon Insurance agencies Message-ID: <200502211610.j1LGAH4j013533@beta.mvs.co.il> References: <002401c516d7$0d3e8cf0$0200a8c0@sedrcw11488> Reply-To: ehud@unix.mvs.co.il NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-8-i Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1109002208 27460 80.91.229.2 (21 Feb 2005 16:10:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 21 Feb 2005 16:10:08 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 21 17:10:07 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D3G8D-0008HA-0W for ged-emacs-devel@m.gmane.org; Mon, 21 Feb 2005 17:09:57 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D3GPB-0006rb-Dr for ged-emacs-devel@m.gmane.org; Mon, 21 Feb 2005 11:27:29 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D3GOC-0006Y3-6f for emacs-devel@gnu.org; Mon, 21 Feb 2005 11:26:29 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D3GO3-0006UE-V8 for emacs-devel@gnu.org; Mon, 21 Feb 2005 11:26:23 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D3GO3-0006Sc-HK for emacs-devel@gnu.org; Mon, 21 Feb 2005 11:26:19 -0500 Original-Received: from [193.16.147.12] (helo=unix.mvs.co.il) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D3G8r-0001oj-AH for emacs-devel@gnu.org; Mon, 21 Feb 2005 11:10:37 -0500 Original-Received: from beta.mvs.co.il (beta [10.253.0.3]) by unix.mvs.co.il (8.13.0/8.13.0) with ESMTP id j1LGAImr024447 for ; Mon, 21 Feb 2005 18:10:18 +0200 Original-Received: from beta.mvs.co.il (localhost [127.0.0.1]) by beta.mvs.co.il (8.12.10/8.12.10) with ESMTP id j1LGAIrU013537 for ; Mon, 21 Feb 2005 18:10:18 +0200 Original-Received: (from root@localhost) by beta.mvs.co.il (8.12.10/8.12.10/Submit) id j1LGAH4j013533; Mon, 21 Feb 2005 18:10:17 +0200 Original-To: "Lennart Borgman" , " "Michael Albinus"" In-reply-to: <002401c516d7$0d3e8cf0$0200a8c0@sedrcw11488> (message from Lennart Borgman on Sun, 20 Feb 2005 00:01:57 +0100) X-Mailer: Emacs 21.3.1 rmail (send-msg 1.108) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: main.gmane.org gmane.emacs.devel:33676 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:33676 On Sun, 20 Feb 2005 00:01:57 +0100, Lennart Borgman wrote: > > > On Wed, 16 Feb 2005 22:47:02 +0100, Michael Albinus wrote: > > > Hello, > > > > > > I'ld like to start Cygwin ssh from Emacs *shell* buffer (recent Emacs > > > 21.3.50 from sourceforge/nqmacs). Unfortunately, Emacs under Windows > > > doesn't provide a tty; that's why I've used "ssh -t -t": > > > > > > [snip] > > > > > > debug1: Requesting pty. > > > debug1: Requesting shell. > > > debug1: Entering interactive session. > > > debug1: fd 0 clearing O_NONBLOCK > > > > > > What do I need to run it in Emacs outside Cygwin? Any option or > > > environment variable to be used? > > > > [I swear I had tramp working with ntemacs a few months back > > .............Arghhhhhhhh] > > > > I too use the same version of emacs and use the latest ssh from cygwin > > and when I issue > > the same command (ssh -v -e none -t -t host.com) within the shell > > buffer at the end > > I get these messages, and it hungs: > > .............. > > debug1: Authentication succeeded (publickey). > > debug1: channel 0: new [client-session] > > debug1: Entering interactive session. > > tcgetattr: Inappropriate ioctl for device > If you use Cygwin ssh, why not use Cygwin Emacs ? I tested (Cygwin's) ssh from within (Cygwin's) Emacs and it works VERY well on both Emacses (the one distributed with Cygwin - 21.2, and cvs's Emacs - 22.0.50 built on Cygwin). I don't use NTemacs (I stopped using it after 20.6), but I think you should try running ssh -T (Disable pseudo-tty allocation), something like: ssh -v -T YOUR-HOST "/bin/bash -i" . You won't have "job control" but otherwise it should work well. Ehud -- Ehud Karni Tel: +972-3-7966-561 /"\ Mivtach - Simon Fax: +972-3-7966-667 \ / ASCII Ribbon Campaign Insurance agencies (USA) voice mail and X Against HTML Mail http://www.mvs.co.il FAX: 1-815-5509341 / \ GnuPG: 98EA398D Better Safe Than Sorry