tramp stands for Transparent Remote Access - Multiple Protocols, an Emacs module that allows remote editing of files.
Questions tagged [tramp]
184 questions
13
votes
5 answers
Originate edit of remote file using emacs tramp from ssh session
This is probably a somewhat out-of-wack question. I use tramp to edit remote files, but I also open several terminals ssh-ing to that remote machine as well for other works (I had problems running ssh shell inside emacs).
Often times during the…

polyglot
- 9,945
- 10
- 49
- 63
13
votes
2 answers
emacs tramp over an unreliable connection
I want to run R on a remote box under a local Emacs (I do not want to run Emacs on the remote box).
I can run R on a remote host using TRAMP:
(let ((default-directory "/user@remote:~"))
(R))
and everything works fine except that when the…

sds
- 58,617
- 29
- 161
- 278
12
votes
1 answer
Emacs: disable Ido completion in Tramp mode
I often use ido for auto-completion and tramp to access remote server via ssh. My .emacs includes the following lines:
(require 'tramp)
(setq tramp-default-method "ssh")
(ido-mode 1)
(setq ido-enable-flex-matching t)
(setq ido-everywhere t)
I want…

Mirzhan Irkegulov
- 17,660
- 12
- 105
- 166
12
votes
7 answers
Using emacs tramp vs. rsync for remote development
I have been doing some remote development using emacs tramp and found that it was quite slow. Every time I save a file, it takes about 10 seconds to complete the save. So, now I am using rsync to transfer the files remotely and it works much…

dr_pepper
- 1,587
- 13
- 28
11
votes
4 answers
Stop tramp-mode running on emacs' startup
I was trying out tramp-mode, but now I cannot seem to get rid of it.. Whenever I start emacs, it spends about 20 seconds going through various tramp-related initialisations..
tramp: Waiting 60s for prompt from remote shell
tramp: Setting up remote…

dbr
- 165,801
- 69
- 278
- 343
11
votes
2 answers
TRAMP ignores tramp-remote-path
I have the following in my .emacs:
(require 'tramp)
(add-to-list 'tramp-remote-path "/some/path")
(add-to-list 'tramp-remote-path 'tramp-default-remote-path)
so when I open a file using tramp over ssh, I expect my PATH to contain /some/path.…

Yossarian
- 5,226
- 1
- 37
- 59
10
votes
2 answers
How can I use Emacs tramp to ssh to a remote host and edit a file as another user on an ad-hoc basis?
/multi used to work for me, now it's gone and I'm frustrated.
What I want to do is, in my dream world:
/myuser@remotehost:sudo:anotheruser:/some/path/to/file
...and have ido-mode work.
The key thing here is that 'myuser', 'remotehost' and…

Chris Withers
- 10,837
- 4
- 33
- 51
10
votes
2 answers
Tramp using ssh does not source .bash_profile / .profile
I'm using Aquamacs (graphical emacs for OSX using emacs 24 and tramp version 2.2.3) to edit some files on a remote server. Tramp is set up to use ssh and works fine in terms of editing files.
It fails when it comes to compiling because the compiler…

Julian
- 299
- 2
- 15
9
votes
1 answer
How can I use Powershell as my tramp-encoding-shell?
First I start up eshell then I enter the command cd /plink:@:/home/
then I get this error message
Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft
Corporation. All rights reserved.
The command prompt has been…

John
- 13,197
- 7
- 51
- 101
9
votes
1 answer
How to check if connected to remote server?
I use tramp to connect to my company's servers.
I would like to customize my functions to work differently if I am accessing local files vs remote ones.
Is there a variable I could check if the buffer I am accessing is on a remote server or my local…

SFbay007
- 1,917
- 1
- 20
- 39
9
votes
0 answers
org-display-inline-images an remote image
I have an image on a remote machine that I want to display inline in an org file.
But the image displayed is a black square.
-------My Org file --------
[[file:/ssh:user@host:/path/to/image.png]]
----------Error message -------
1 images displayed…

KYC
- 384
- 2
- 7
9
votes
2 answers
Bizzarre Emacs Tramp Fix
I was In the middle of editing a file on a remote host and hit C-x C-s, when suddenly Emacs froze. It had been working earlier that day; I'd saved from another buffer in the same session only ten minutes prior. Hitting C-g pulled it out of the hung…

amp108
- 432
- 3
- 14
9
votes
1 answer
how to disable autosave for tramp buffers in emacs?
autosave for tramp buffers is very annoying, every time it cost dozens of seconds.
I can disable it by using Alt-X auto-save-mode, Is there any way I can do to automatic disable it? maybe by using some kind of hook?

linjunhalida
- 4,538
- 6
- 44
- 64
9
votes
2 answers
Using Emacs TRAMP with an ssh server that doesn't provide /bin/sh?
I am trying to use Emacs TRAMP to access files over ssh on a server that does not provide /bin/sh, and so I get the following error when I try to connect:
env: can't execute '/bin/sh': No such file or directory
Is there any way to tell TRAMP where…

Ryan C. Thompson
- 40,856
- 28
- 97
- 159
8
votes
2 answers
How do I rename R sessions in ESS?
I previously asked how to switch R sessions in ESS, and the use of C-x C-s has sped up my workflow greatly.
However, if I have multiple R sessions (even as few as 3), it can be difficult to remember which on is R, which is R:2, and which is R:3. Is…

David LeBauer
- 31,011
- 31
- 115
- 189