tramp stands for Transparent Remote Access - Multiple Protocols, an Emacs module that allows remote editing of files.
Questions tagged [tramp]
184 questions
4
votes
0 answers
Emacs 26.1 hangs when tramp is trying to save a file over ssh
I’m using Emacs version 26.1 installed via homebrew on macOS.
It often hangs while I’m editing a file over ssh using tramp (say, every 20 minutes).
When I hit Ctrl-x-s to save file (or automatic backup is triggered), tramp starts saving file.…

Keisuke
- 86
- 4
4
votes
2 answers
Does tramp offer any API for interrogating information from the buffer-file-name
I'm currently doing a lot of work on remote machines with tramp. However the project logic gets confused when building make command lines as it will attempt to cd to some /ssh:blah.... path.
Does tramp provide any API functions to test if a buffer…

stsquad
- 5,712
- 3
- 36
- 54
4
votes
2 answers
Open file remotely on a vagrant box with sudo access using Emacs 24.3
As per this answer, I tried to edit, say, /etc/resolv.conf as a super user on my vagrant box by using the following command:
C-x C-f /vagrant@127.0.0.1#2200|sudo:127.0.0.1#2200:/etc/resolv.conf
But it just opened a file on my local machine,…

djhaskin987
- 9,741
- 4
- 50
- 86
4
votes
2 answers
How to interrupt tramp from reading a big file
Some time ago I opened a file via tramp. That is, effectively via ssh/scp. It still is not finished and I would like to stop the reading. Yet C-g does not work. Apart from killing emacs (which seems quite unethical to me, it also destroys my M-x…

false
- 10,264
- 13
- 101
- 209
4
votes
1 answer
Emacs -- dired-mode test to determine remote server name / address
Is there a test to obtain the remote server name (e.g., localhost) or address (e.g., 12.34.56.789) in the current-buffer with dired-mode active?
I suppose I could use string-match or split-string and then equal, but I thought there might be a handy…

lawlist
- 13,099
- 3
- 49
- 158
4
votes
2 answers
How to make Emacs 'man' work over Tramp?
I have a question regarding the use of M-x man in Emacs. I'm working with Tramp all the time and often the installed program base on the remote server differs significantly from my local setup. I see that invoking M-x man involves looking for the…

Wojciech Gac
- 1,538
- 1
- 16
- 30
4
votes
1 answer
Emacs dired+tramp, wrong filenames with UTF8
When using tramp+dired first I got this:
And I thought I solved it by these lines:
(setq tramp-remote-process-environment ())
(add-to-list 'tramp-remote-process-environment "LC_ALL=en_US.utf8" 'append)
But now something wrong happens:
also wasn't…

Sergey
- 19,487
- 13
- 44
- 68
4
votes
1 answer
emacs tramp how to avoid bash_profile
Every time I'm visiting a file system in remote machine and I execute a command (e.g. grep) the emacs buffer with the result of that command also contains my verbose .bash_profile output.
How could I disable this behavior? That is, how to make the…

Rodrigo Amestica
- 71
- 3
4
votes
1 answer
How to access Windows shared folders using emacs
I am using Emacs on Linux and would want to know how to access my Windows shared folders from Emacs.
I am able to perform this operation using nautilus (gnome file manager).

ggg
- 1,857
- 2
- 21
- 33
3
votes
0 answers
Emacs hangs when using tramp with su
after reinstalling my system, I discovered that the emacs tramp isn't working..;.
Here is what exactly happens :
I type in
C-x C-f /su:root@localhost:
Here emacs asks for my password, which I provide. It then hangs, showing the above string…

user1179115
- 41
- 2
3
votes
0 answers
Troubleshooting Emacs Tramp Connection that Used To Work--Password or Shell Regexp Wrong?
I'm trying to troubleshoot why an emacs+tramp connection that used to work doesn't now. At first I thought it might be an Aquamacs problem, but I loaded Emacs.app on OSX, based on version 23.3 (9.0), and it doesn't work either. The remote host runs…

amp108
- 432
- 3
- 14
3
votes
1 answer
How to run Emacs commands with sudo outside a shell?
I know how to open/edit files in Emacs as root with sudo, using Tramp. I wonder if there is a way to run Emacs commands with sudo too, without opening a shell?
Something like:
sudo M-x find-name-dired
or
M-x sudo find-name-dired
for example.

Thorsten
- 3,451
- 3
- 20
- 25
3
votes
1 answer
Emacs tramp to edit remote files on Windows from Linux
What is the best way to edit remote files on a Windows box (XP) from Linux?
I am running emacs 23.3 locally under Linux.
I would like to keep the extra software on the windows-box minimal, but I can install some extra software if needed. Cygwin is…

mirk
- 5,302
- 3
- 32
- 49
3
votes
1 answer
Reaching a remote host through a gateway using Emacs and Tramp
I am attempting to edit a remote file in Emacs, and I'm having trouble getting from the documentation and previous SO questions to doing the thing I want.
I'm working remotely, from a variety of locations, and I want to edit files on server Foo.…

Brighid McDonnell
- 4,293
- 4
- 36
- 61
3
votes
2 answers
How to transfer files with Tramp using scp or rsync
I've read the TRAMP manual and dozens of forums across the web but I couldn't find an answer to this question. I am trying to set up a link in org-mode that transfers a file from a remote server to my local machine (or vice-versa).
According to the…

Ajned
- 523
- 5
- 21