Reputation: 3843
I have followed (and partially adapted) the recommendations in Open file via SSH and Sudo with Emacs
My custom.el contains something like the following:
(custom-set-variables
'(tramp-default-proxies-alist (quote (("my-sudo-alias" nil "/ssh:user@host")))))
However when I try to visit a remote file say sudo:my-sudo-alias:/etc/whatever
I get the following error: Method `scpc' is not supported for multi-hops.
How do I fix this?
Upvotes: 2
Views: 1412
Reputation: 73274
Perhaps something else in your proxy list is interfering?
What does C-h v tramp-default-proxies-alist
look like?
You might also have scpc
set as your tramp-default-method
. I don't think that should be an issue in this case, but I'm not certain of that.
Did you try the ad-hoc approach that I detailed in the Q&A you linked to?
If that doesn't work, try emptying the proxy list, and then trying it again.
Note also that the scpc
& rsyncc
tramp methods are deprecated in the latest Tramp (ControlMaster is now used automatically if it is available).
Upvotes: 1