On (info "(tramp) Quick Start Guide")
5.2 Using ‘ssh’ and ‘plink’
===========================
If your local host runs an SSH client, and the remote host runs an SSH
server, the most simple remote file name is
‘/ssh:address@hidden:/path/to/file’. The remote file name ‘/ssh::’
opens a
remote connection to yourself on the local host, and is taken often
for
testing TRAMP.
SAY INSTEAD:
==========================
If your local host runs an SSH client, and the remote host runs an SSH
server, the most simple remote file name is
‘/ssh:address@hidden:/path/to/file’.
If you have the same username there as here, just use
‘/ssh:example.com:/path/to/file’.
Now as we know,
$ ssh example.com
puts us in our home directory there.
Likewise so does
‘/ssh:example.com:’
Whereas
‘/ssh:example.com:/’
is the root directory there.
(Don't use "::", as the remote file name ‘/ssh::’ opens a remote
connection to yourself on the local host (for testing TRAMP) so
‘/ssh::example.com:/path/to/file’won't reach example.com at all.)
==========================
THANKS!
P.S., this 'quick' guide needs a super quick cheatsheet up front.
_______________________________________________
Tramp-devel mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/tramp-devel