0

I often work on remote hosts and I mostly need to be root, but I can't login as root. It would be convenient, if sudo -s is being executed automatically when I establish a connection with shell/eshell.

1

You can use Tramp's multi-hop feature. Open C-x C-f /ssh:user@host|sudo:host:. Then you can call M-x shell or M-x eshell, and you work as root on host.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.