* Fw: [h-e-w] Emacs and ssh
@ 2005-02-19 23:01 Lennart Borgman
2005-02-21 16:10 ` Ehud Karni
0 siblings, 1 reply; 3+ messages in thread
From: Lennart Borgman @ 2005-02-19 23:01 UTC (permalink / raw)
----- Original Message -----
From: "geotal" <geotal@gmail.com>
To: "Michael Albinus" <michael.albinus@gmx.de>
Cc: <help-emacs-windows@gnu.org>
Sent: Saturday, February 19, 2005 11:39 PM
Subject: Re: [h-e-w] Emacs and ssh
> On Wed, 16 Feb 2005 22:47:02 +0100, Michael Albinus
> <michael.albinus@gmx.de> 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":
> >
> > Microsoft Windows XP [Version 5.1.2600]
> > (C) Copyright 1985-2001 Microsoft Corp.
> >
> > d:\>ssh -v -e none -t -t -l albinus xxx.de
> > ssh -v -e none -t -t -l albinus xxx.de
> > OpenSSH_3.9p1, OpenSSL 0.9.7e 25 Oct 2004
> > debug1: Connecting to xxx.de [xxx.xxx.xxx.xxx] port 22.
> > debug1: Connection established.
> > debug1: identity file /cygdrive/c/Dokumente und
Einstellungen/Michael/.ssh/identity type -1
> > debug1: identity file /cygdrive/c/Dokumente und
Einstellungen/Michael/.ssh/id_rsa type -1
> > debug1: identity file /cygdrive/c/Dokumente und
Einstellungen/Michael/.ssh/id_dsa type -1
> > debug1: Remote protocol version 1.5, remote software version 1.2.25
> > debug1: no match: 1.2.25
> > debug1: Local version string SSH-1.5-OpenSSH_3.9p1
> > debug1: Waiting for server public key.
> > debug1: Received server public key (768 bits) and host key (1024 bits).
> > debug1: Host 'xxx.de' is known and matches the RSA1 host key.
> > debug1: Found key in /cygdrive/c/Dokumente und
Einstellungen/Michael/.ssh/known_hosts:1
> > debug1: Encryption type: 3des
> > debug1: Sent encrypted session key.
> > debug1: Installing crc compensation attack detector.
> > debug1: Received encrypted confirmation.
> > debug1: Doing password authentication.
> >
> > That's it. Using a cygwinized Emacs, also 21.3.50, it works. Same
> > output as above, but password query is shown next line:
> >
> > albinus@xxx.de's password: xxx
> >
> > 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?
> >
> > Thanx for any hint, Michael.
>
> [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
>
> Any help is appreciated.
>
> Geotal
>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Fw: [h-e-w] Emacs and ssh
2005-02-19 23:01 Fw: [h-e-w] Emacs and ssh Lennart Borgman
@ 2005-02-21 16:10 ` Ehud Karni
2005-02-21 22:51 ` Michael Albinus
0 siblings, 1 reply; 3+ messages in thread
From: Ehud Karni @ 2005-02-21 16:10 UTC (permalink / raw)
Cc: emacs-devel
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [h-e-w] Emacs and ssh
2005-02-21 16:10 ` Ehud Karni
@ 2005-02-21 22:51 ` Michael Albinus
0 siblings, 0 replies; 3+ messages in thread
From: Michael Albinus @ 2005-02-21 22:51 UTC (permalink / raw)
Cc: Lennart Borgman, help-emacs-windows, emacs-devel
"Ehud Karni" <ehud@unix.mvs.co.il> writes:
> 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 did the same test a while ago, it works indeed without any
problem. But: it isn't because of me. It's because of Tramp users, who
apply both NTemacs (or nqmacs) together with Cygwin's ssh. And before
I discourage them for this combination, I'ld like to know that it
really doesn't work. See the discussion in
<help-emacs-windows@gnu.org>, where this thread did start.
> 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.
Thanx for the hint. Unfortunately, it doesn't work either ...
> Ehud
Best regards, Michael.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-02-21 22:51 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-19 23:01 Fw: [h-e-w] Emacs and ssh Lennart Borgman
2005-02-21 16:10 ` Ehud Karni
2005-02-21 22:51 ` Michael Albinus
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.