[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fw: [h-e-w] Emacs and ssh
From: |
Ehud Karni |
Subject: |
Re: Fw: [h-e-w] Emacs and ssh |
Date: |
Mon, 21 Feb 2005 18:10:17 +0200 |
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 <http://www.keyserver.net/> Better Safe Than Sorry