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
But (a) I don't know the exact syntax for this command and (b) what I have tried seems to not work.
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?