I would like to upgrade my current workflow so I can use Emacs to edit a file on a remote machine. Here is what I have to do now:
ssh remote # password1 required
sudo su -l otheruser # password2 required
I should note that remote
is defined in my ~/.ssh/config
file and I am using a password to protect my ~/.ssh/id_rsa
key.
But (a) I don't know the exact syntax for this command and (b) what I have tried seems to not work.
Here is my first attempt, based on this and this:
C-x C-f /sshx:remote|su:otheruser@remote:
This prompts me first for the password for remote
, and then prompts for the password for otheruser@remote
. And then nothing - no error message, but also no remote file access.
Is this syntax correct to recreate the basic "first ssh, then su" workflow from above?
tramp-verbose
to 3 or higher, then looking in the*Messages*
buffer after? – gregoryg Jun 10 '20 at 03:22*debug tramp/FOO*
for the connection FOO. – phils Jun 11 '20 at 05:59