2010/12/2 Michael Albinus <[email protected]>:
> I assume, you use the same user on A and B, let's call him "ole".
>
> (add-to-list 'tramp-default-proxies-alist
>             "B" "ole" "/sudo:r...@a:")
> (add-to-list 'tramp-default-proxies-alist
>             "A" "root" "/ssh:o...@a:")

Wohoo, it's working! Thanks!


Just for anyone looking this up later, you forgot the parentheses:

(add-to-list 'tramp-default-proxies-alist
            '("B" nil "/sudo:r...@a:"))
(add-to-list 'tramp-default-proxies-alist
            '("A" "root" "/ssh:o...@a:"))

(I dropped the username in the first rule, then it seems I can just do
a "/ssh:B:/somepath" without username)

I think I can follow the logic now - the command is to ssh to B, when
accessing B we must first sudo to root at A, when accessing A as root
we must first ssh to A. It's a bit confusing because it's backwards,
and I think I didn't quite grasp the rule would fire on the sudo too,
the info page is talking about hosts and whatnot. :)


Ole

_______________________________________________
Tramp-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/tramp-devel

Reply via email to