[email protected] writes:
Hi Tom,
> WOW! The line you sent does work for me. This is really cool stuff.
Well, this syntax is intended for accessing a remote host via multi-hops
in ad-hoc mode, without configuration in advance. It is ugly, and hard
to type.
If you have a permanent need to use multi-hops, you might consider
configuring `tramp-default-proxies-alist'. Let's say, you want to access
several remote hosts by this scenario. Then you need a regexp, which
matches exactly all these hosts. If there is exactly one host,
"remotehost", the regexp could be created by
(concat "^" (regexp-quote "remotehost") "$")
Otherwise, you might check for the domain name or something else the hosts
have in common. Then you need to add the following lines to your .emacs:
(let ((regexp ...))
(add-to-list 'tramp-default-proxies-alist
(regexp nil "/sudo:root@%h:"))
(add-to-list 'tramp-default-proxies-alist
(regexp "root" "/ssh:you@%h:")))
With "you" I mean your user account. With these settings, you can always
access that remotehost via "C-x C-f /su:user@remotehost:/path"
Best regards, Michael.
_______________________________________________
Tramp-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/tramp-devel