Answer by phils for Open file via SSH and Sudo with Emacs
As of Emacs 24.3, an analog of the old multi: syntax has been layered on top of the modern tramp-default-proxies-alist approach, meaning that you can once again perform multi-hops without any prior...
View ArticleAnswer by vampolo for Open file via SSH and Sudo with Emacs
From the tramp multi-hops configuration webpage (add-to-list 'tramp-default-proxies-alist'(nil "\\`root\\'""/ssh:%h:")) (add-to-list 'tramp-default-proxies-alist'((regexp-quote (system-name)) nil...
View ArticleAnswer by User1 for Open file via SSH and Sudo with Emacs
I had some troubles with the selected answer. However, it worked when I added this line to .emacs:(add-to-list 'tramp-default-proxies-alist '(".*""\\`root\\'""/ssh:%h:"))And then executed the...
View ArticleAnswer by Dave Bacher for Open file via SSH and Sudo with Emacs
Update: Although this answer solved the original problem, it was written for emacs 20 or 21. For emacs 24, I recommend you use phils's answer because it offers more explanation and is up to date. I...
View ArticleAnswer by Dan Andreatta for Open file via SSH and Sudo with Emacs
You have to ssh into the server first, then you have to run emacs locally.Or you can use NFS with no_root_squash, or you can try with emacs server/client, although I have no idea of what may happen (do...
View ArticleOpen file via SSH and Sudo with Emacs
I want to open a file inside Emacs which is located on a remote server, with sudo powers on the server. I can open local files with sudo via Tramp like this:C-x C-f /sudo::/home/user/fileBut I want to...
View Article