help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tramp multi hop ssh, and shell


From: Michael Albinus
Subject: Re: tramp multi hop ssh, and shell
Date: Thu, 19 Dec 2019 21:32:13 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Joao Cortes <address@hidden> writes:

Hi Joao,

> When hoping about an ssh gateway, 'tramp' performs a new connection each
> time I call 'compile'.
>
> For instance, If I do
>
> C-x C-f /ssh:me@taurus|/ssh:me@aries:,

I guess you mean /ssh:me@taurus|ssh:me@aries:

> 'tramp' correctly connects me to aries, asking for authentication for
> both machines.  However, If I run 'compile' , or open a new shell with
> 'shell' while in an aries directory, Tramp reconnects to aries , asking
> for authentication again and again.
>
> If I do not hop about taurus, doing something like,
>
> C-x C-f /ssh:me@aries,
>
> running 'compile' does not cause a reconnection.

`compile' calls `start-file-process-shell-command', which runs a new
process. How do you believe, Tramp does not "cause a reconnection"?

> Can any one confirm this behaviour? If so, is this intendend?
>
> Does anyone know how to make emacs treat a multi hop like a non hoping
> connection?

What could happen is that Tramp does not remember the already provided
passwords in case of multihops. Could you pls confirm that you mean this
scenario?

> Thanks

Best regards, Michael.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]