[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Dired command on same host
From: |
Manuel Giraud |
Subject: |
Re: Dired command on same host |
Date: |
Wed, 05 Jan 2022 10:35:22 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (berkeley-unix) |
Tassilo Horn <tsdh@gnu.org> writes:
> Michael Albinus <michael.albinus@gmx.de> writes:
>
>>> I have in my init a (simple) function that does this out-of-band scp
>>> but I think that the most tricky parts (for something general pupose)
>>> are:
>>> - how host A understand host B name?
>>> - is host B reachable from host A?
>>
>> Must be checked, yes. But this isn't a problem for Tramp. It keeps
>> shell sessions on both host A and host B, a simple "ssh -q -o
>> ConnectTimeout=1 B exit 2>/dev/null" on host A would tell us whether
>> host B is reachable
>
> Sorry if that question just illustrates that I don't know how Tramp
> works but: is it ensured that the host B on A is the same as B on my
> local machine? Like I could have different hosts defined as B in my
> local /etc/hosts and the one on A.
AFAIU, tramp relies on ssh here. So you are right that host B on A could
be something completely different (configured by means of /etc/hosts or
ssh config). In fact, this out-of-band could even do something
*wrong*. But I think it could be useful on a «reasonable» setup.
--
Manuel Giraud
- Dired command on same host, Manuel Giraud, 2022/01/04
- Re: Dired command on same host, Michael Albinus, 2022/01/04
- Re: Dired command on same host, Manuel Giraud, 2022/01/04
- Re: Dired command on same host, Michael Albinus, 2022/01/04
- Re: Dired command on same host, Tassilo Horn, 2022/01/04
- Re: Dired command on same host,
Manuel Giraud <=
- Re: Dired command on same host, Tomas Hlavaty, 2022/01/05
- Re: Dired command on same host, Michael Albinus, 2022/01/06
- Re: Dired command on same host, Michael Albinus, 2022/01/07
- Re: Dired command on same host, Manuel Giraud, 2022/01/10
- Re: Dired command on same host, Michael Albinus, 2022/01/10
- Re: Dired command on same host, Manuel Giraud, 2022/01/10
- Re: Dired command on same host, Michael Albinus, 2022/01/10
- Re: Dired command on same host, Manuel Giraud, 2022/01/10
- Re: Dired command on same host, Michael Albinus, 2022/01/11
- Re: Dired command on same host, Manuel Giraud, 2022/01/11