Hi Michael,

Michael Albinus <[email protected]> writes:

>> 2. 
>> /ssh:host2.mydomain.edu|sudo:host1.mydomain.edu|ssh:slave:/etc/somefile.txt
>>    WRONGLY opens file on host1
>
> This cannot work. You can use sudo in a multihop only on the same host
> as the previous hop. sudo on host1, coming from host2, is impossible.

Sorry, it looks like I mistakenly wrongly formulated my question. Let me
start over:

1. /ssh:host1.mydomain.edu|sudo:host1.mydomain.edu:/etc/somefile.txt 
   Works fine

1. /ssh:host1.mydomain.edu|sudo:host1.mydomain.edu|ssh:slave:/etc/somefile.txt 
   Works fine

2. /ssh:host2.mydomain.edu|sudo:host2.mydomain.edu:/etc/somefile.txt 
   Works fine

2. /ssh:host2.mydomain.edu|sudo:host2.mydomain.edu|ssh:slave:/etc/somefile.txt 
   WRONGLY opens file on host1

WBR, Alex

Reply via email to