[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Simplest ssh line
From: |
Michael Albinus |
Subject: |
Re: Simplest ssh line |
Date: |
Wed, 15 May 2019 14:58:18 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
積丹尼 Dan Jacobson <address@hidden> writes:
Hi Dan,
> In (info "(tramp) Quick Start Guide")
>
> If your local host runs an SSH client, and the remote host runs an SSH
> server, the simplest remote file name is
> ‘/ssh:address@hidden:/path/to/file’.
>
> My experiments found that
>
> /ssh:address@hidden:.
>
> works and is simpler than
>
> /ssh:address@hidden:/home/user
>
> so mention that too. Maybe I don't even need the trailing dot. Mention if/not.
But this is a special case for /home/user. The Tramp manual is not the
place to list the extensive list of possible special cases. And for
other methods, this might even not be true.
> Anyway, users wonder
> "If I can do
> $ ssh host
> as a shortcut to
> $ ssh address@hidden
> as I am the same user there,
> then maybe some shortcuts are possible when calling tramp too."
> So please mention them there!
It is not a shortcut, but plain ssh behavior. If you don't give a user
name, the local user name is taken unless there is a user name in
./ssh/config. The Tramp manual is not the place to describe all ssh
configuration possiblities; the man page of ssh does it better.
Using Tramp requires basic knowledge about the underlying commands.
Best regards, Michael.
- Simplest ssh line, 積丹尼 Dan Jacobson, 2019/05/15
- Re: Simplest ssh line,
Michael Albinus <=