Quantcast
Channel: Open file via SSH and Sudo with Emacs - Stack Overflow
Browsing latest articles
Browse All 6 View Live

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 Article



Answer 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 Article

Answer 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 Article

Answer 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 Article

Answer 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 Article


Open 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
Browsing latest articles
Browse All 6 View Live




Latest Images