Are there any technical reasons or use cases for why
sudo:: in TRAMP cannot use the rightmost host to the left of it, instead of localhost?
When I do
/ssh:email@example.com|sudo::/tmp/file, I would expect the
sudo:: to implicitly use
More generally, when multiple SSH hops are chained together, such as in
/ssh:jumpbox.example.com|ssh:remote.example.com|sudo::/tmp/file, I would expect the
sudo:: to always use the rightmost host to the left of the
I expect this because from a user interface and experience perspective, to me this seems like the obviously more intuitive and most convenient behavior for it to do.
But this does not happen. Instead,
sudo:: seems to always implicitly use root @ the local host.
I understand that this is how it is. What I don't understand is why? Are there technical reasons for why implementing this would be difficult, or common use cases I am not imagining that would be broken if this was implemented?