Michael Albinus <[email protected]> writes:

> Kai Tetzlaff <[email protected]> writes:
>
>> Hi Michael,
>
> Hi Kai,
>
>> with auth-source enabled when SSHing to a server with sudo as 2nd hop
>> like `[email protected]|sudo:/etc/passwd` TRAMP apparently tries
>> to look up the sudo password using `user=root, host=host.example.com,
>> port=sudo` (at least that is what auth-source-pass tells me with
>> debugging enabled [1]). Now, why does the lookup use `user=root` instead of
>> `user=notroot`. Is there a way to change that?
>
> Could you please be more precise? `[email protected]|sudo:/etc/passwd`
> does not look like a valid remote file name.

Sorry, you're right. I meant:

  /ssh:[email protected]|sudo::/etc/passwd

>
>> Thanks,
>> Kai
>
> Best regards, Michael.

BR, Kai


Reply via email to