tramp stands for Transparent Remote Access - Multiple Protocols, an Emacs module that allows remote editing of files.
Questions tagged [tramp]
184 questions
128
votes
5 answers
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/file
But I want to use sudo on the server:
C-x C-f…

Fernando Briano
- 7,699
- 13
- 58
- 75
49
votes
3 answers
Editing remote files with Emacs using public key authentication
How can I edit files on my remote host using my local Emacs when I can access the remote host only through SSH with public key authentication? Tramp handles normal password logins pretty well but I can't figure out how to get it work with key pairs.…

pico
- 1,349
- 2
- 10
- 15
44
votes
6 answers
Emacs: Tramp doesn't work
I tried to open a remote file via Emacs via Tramp.
(require 'tramp)
(setq tramp-default-method "ssh")
I get a message from Emacs
Tramp: Waiting for prompts from remote shell
Emacs hung and did not respond to any action after that
Emacs was…

jerboa
- 1,371
- 2
- 12
- 18
33
votes
5 answers
How can I use Emacs Tramp to double hop ssh?
My campus only lets ssh access through a gateway server. So to access the cluster I am coding on I have to ssh to the gateway and then ssh to the machine I am working on. The connection is very slow at times and is frustrating to work on.
I would…

f4hy
- 1,299
- 3
- 14
- 18
25
votes
2 answers
How to use SSH and SUDO together with TRAMP in Emacs
Possible Duplicate:
Open file via SSH and Sudo with Emacs
I want to open a file using sudo (say, /etc/hosts) on a remote machine connected by ssh using TRAMP on Emacs.
I tried couple of options, but none of them worked. Can anybody tell me how to…

Jeevan Pingali
- 1,072
- 1
- 9
- 11
19
votes
3 answers
Tramp mode in emacs using ssh config
I think this is very basic question in using tramp, but it doesn't work for me.
I have my ~/.ssh/config file that points to my amazon ec2 machine
Host amazon
Hostname xxxx.amazonaws.com
Port yyy
User me
IdentityFile ~/.ssh/ubuntu
…

Matilda
- 1,708
- 3
- 25
- 33
18
votes
1 answer
How can I switch between R sessions in emacs-ess?
I have two sessions open in Emacs-ESS: one on my desktop and one on a server using tramp. How can I tell ESS which session to use?

David LeBauer
- 31,011
- 31
- 115
- 189
18
votes
1 answer
Is it possible to use Ropemacs with TRAMP in Emacs?
I recently installed the hg tip version of Ropemacs and I'd like to use it when editing remote files using TRAMP. Has anyone done this? When I try to use M-/ to complete a variable name, I am asked to enter the Rope project root folder and I enter:…

saltycrane
- 6,541
- 6
- 34
- 43
18
votes
4 answers
Emacs 24.3 for windows, Tramp byte-code: Couldn't find a proper `ls' command
24.2 works well, but 24.3 bounded tramp got following error when open remote Linux system files or directories:
"byte-code: Couldn't find a proper `ls' command"
I open tramp trace and find that, all remote search path and file path are extend by…

Carthage
- 298
- 2
- 8
17
votes
2 answers
Running pyflakes remotely with flymake and tramp in emacs?
I'm trying to use flymake to run pyflakes, as suggested here
This works fine for local files, and almost works with remote files with a bit of tweaking, but I'm left with a problem where flymake/pyflakes 'modifies' the buffer when it runs (although…

phils
- 71,335
- 11
- 153
- 198
17
votes
2 answers
Refresh remote directory in Emacs Tramp Mode
I've been using Tramp mode on my Emacs to edit files remotely. I'm also using ido mode. When I add a new file in the same directory of a file I opened using Tramp, I couldn't get Tramp to find the new file(with C-x C-f). Is there a way to refresh…

liangzan
- 6,804
- 4
- 29
- 28
16
votes
5 answers
Passwords in Emacs tramp mode editing
I'm using emacs tramp mode to remotely edit files over ssh. The problem is that every time I save the file I'm editing I have to enter my user password. I find that very annoying. How can I write my password only once / editing session?

Jonas
- 19,422
- 10
- 54
- 67
15
votes
2 answers
How to create a trampoline function for hook
I'm interested in hooking and I decided to see if I could hook some functions. I wasn't interested in using a library like detours because I want to have the experience of doing it on my own. With some sources I found on the internet, I was able to…

Stratus
- 373
- 1
- 4
- 9
14
votes
2 answers
Emacs 24.3.1 TRAMP hangs on opening file
I am running graphical Emacs 24.3.1 (this problem exists when using the console version as well) on Arch Linux. I am trying to use TRAMP to open files on a remote Fedora system by SSH with a private key which requires a password. Authentication…

justinpc
- 797
- 6
- 19
13
votes
2 answers
In Emacs, how do I use directory local variables for remote projects?
I'm using TRAMP to connect to a remote server and I wanted to use some directory local variables. What are my options? Should I use emacs-server and do it that way, or should I add the directory local variables to my .emacs file? Is there a way to…
user9903