tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

TRAMP + Sudo infinite loop weirdness


From: Vlad
Subject: TRAMP + Sudo infinite loop weirdness
Date: Thu, 11 Mar 2021 01:21:16 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.1

Dear tramp-devel Team,

I'm having a though time editing files with emacs (GNU Emacs 27.1 (build
1, x86_64-pc-linux-gnu) of 2020-09-26) as sudo on my server (FreeBSD 12).
The SSH connection is established via ssh-keys.

Editing files via Tramp (find-file "ssh:user@machine:/") everything 100%
works, however, doing (find-file "ssh:user@machine|sudo:root@machine:/")
does not work *most of the time*. One out of 20 of entering this
find-file command, I get the remote password prompt to enter my remote
user's password to get a tramp connection with sudo privileges. However,
most of the time, Tramp produces trash inputs into the password field by
itself, instead of giving me the password prompt. As a result, either
nothing happens or emacs get's stuck in a loop and C-g crashes emacs.

"tramp-verbose 10" reveals the culprit being a repeated series of "exec
sudo -u root -s -H -p P""a""s""s""w""o""r""d"": /bin/sh"
"^[[?2004lPassword:" "Sorry, try again." instead of giving me the
password prompt.

Full verbose log attached to this mail.

Anything I can do to stop tramp from acting up?

Best regards,


Vlad

Attachment: tramp.debug
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]