Jon SCHEWE <[email protected]> writes:

Hi Jon,

>> This problem is known, and solved already in Tramp 2.4, which will be
>> part of the upcoming Emacs 27. In an ad-hoc multi-hop file name, host
>> names must match for methods like "su", "sg", "sudo", "doas", and "ksu".
>>
> So this requires that the hostname for the sudo must match the hostname
> for the ssh like you've given me in the URL above, correct?

Yes. With Tramp 2.4, you'll get

(find-file 
"/ssh:[email protected]|sudo:root@localhost:/etc/logcheck/ignore.d.server/local")

=> Host name ‘localhost’ does not match ‘^collab-01\.bbn\.com$’

Best regards, Michael.

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

Reply via email to