Questions tagged [tramp]

TRAMP is ‘Transparent Remote (file) Access, Multiple Protocol’ for editing remote files from Emacs.

Filter by
Sorted by
Tagged with
45
votes
7answers
3k views

How can I use my local Emacs client as the $EDITOR for remote machines I access over TRAMP?

I often use TRAMP to manage several remote servers, both for editing files and running remote shells in shell-mode. However, this does not work when a command uses the EDITOR variable to edit a file, ...
18
votes
2answers
6k views

Tramp mode is much slower than using terminal to ssh

I am using the Macports flavor of Emacs on OSX Yosemite, and have looked through every thread here on Tramp being slow without any solution. Tramp is usable, but there is about a 100ms delay between ...
12
votes
2answers
4k views

Tramp/Dired transfers files inline over ssh instead of using scp externaly

I am using tramp via ssh to access remote files. For text files, this is working really well, but whenever I want to copy larger remote files to my local machine, tramp uses its slow inline method (...
12
votes
1answer
699 views

Run application in cwd on remote host from within eshell

I often use Eshell to connect to remote systems. On those remote systems I sometimes want to run scripts in the current working directory. In a regular terminal I'd type this: ./my-script.sh ...
12
votes
2answers
869 views

Can Emacs use tramp to run in an interactive session on a remote HPC node?

I have been using Emacs with ESS and tramp to load remote files and run remote R processes on HPC computers. With ssh keys, tramp makes this easy with C-x C-f to find file at /ssh:myserver:/path/to/...
11
votes
2answers
2k views

TRAMP over mosh

Mosh is an alternative to ssh that is generally more resilient. In particular, it can deal with: Extreme packet loss Changing client IPs Temporary connection loss There are few downsides to using it,...
10
votes
1answer
2k views

Tramp unable to open some files

I just started using emacs last week and everything is going well so far. I am using tramp to edit remote files as follows: C-x C-f /ssh:user@server:/file/to/edit I login to the server using an ssh ...
10
votes
2answers
2k views

Magit doesn't recognise git repo through ssh connection

I'm using ssh to connect to a remote server. On the server there is a git repo called MRFLSSVM. However, when I execute magit-status on: /ssh:qmServer:/home/Chang/qmCodeLab/MRFLSSVM/ Magit asks me ...
9
votes
2answers
370 views

How can I download a web page's source from Emacs?

I want to use Emacs as an enhanced way to view the source of a page (say http://example.com). Is there some easy way to download the page directly from Emacs, maybe even through C-x C-f? I remember ...
9
votes
2answers
3k views

emacsclient to access remote emacs server

I'm trying to open an emacsclient session from a remote host. I walked through the following steps on the tramp website How can I use TRAMP to connect to a remote Emacs session?. I'll walk you ...
9
votes
3answers
3k views

Running ipython remotely

I am trying to run an ipython interpreter remotely (with Emacs 24.5 and native python.el), but I'm not sure I have the right approach: whenever I try to run such a command for instance (which gets ...
9
votes
2answers
569 views

Password/Key Management for multiple machines in emacs

I log into numerous machines as part of my job (+- 20 per day). I only spend a few days/weeks with each machine. Many run ftp only. For seamless access Tramp is amazing, but it is the managing of ...
9
votes
1answer
2k views

How do I make tramp+eshell use my environment customized in the remote ~/.bash_profile

I have set up custom $PATH in my ~/.bash_profile on a remote machine (for programs installed user-locally by nix and cabal). I use eshell and tramp to issue commands on the remote machine (cd /...
9
votes
1answer
2k views

TRAMP is unbearably slow (OSX, ssh)

I have always found TRAMP to be crazy slow (5+ secs to fetch a directory listing) so I've avoided it for years. Time to figure out what is going on. I'm always connecting via ssh, using declarations ...
9
votes
1answer
366 views

How to prevent tramp locations from interfering in history?

I have an issue where if I try to perform some random Emacs operations such as org-capture, or renaming a file to a different (local) directory in dired, Emacs attempts to contact a different machine ...
8
votes
1answer
922 views

Using Tramp for logs

I am trying to use Tramp with auto-revert-tail-mode to perform a tail of a remote log. Every time the log updates (which is often), the screen briefly jumps to the bottom of the file and then back to ...
8
votes
1answer
2k views

“terminal is not fully functional” over ssh in a *shell* buffer

I'm using the shell (M-x shell) to connect to a remote host via SSH. After launching some command line tools (mostly psql, the postgresql command line interface, but man would be the same for example),...
8
votes
1answer
1k views

How to disable auto-save in emacs only for files opened as root

I want to use emacs auto-save feature with tramp, but only for file that I don't open using sudo. My current configuration, based on the tramp documentation, looks like this: ;;;;;;;; BAKUCP ;;;;;;;; ...
7
votes
2answers
2k views

Working with tramp mode on slow connection, emacs does network trip when I start typing

After some pause (a few seconds) of idle I start typing and emacs does some network activities and because of my slow connection this looks like everything is slow and hanging all the time. I disabled ...
7
votes
2answers
1k views

.tramp_history files

I have noticed that opening a tramp connection on remote hosts sometimes created a .tramp_history file in the user's directory. Is there any way to disable such a behavior? I have to log in to many ...
7
votes
2answers
1k views

Emacs suspend at startup ssh connection issue

I toggled the debug-on-error and debug-on-quit options, then press C-g when Emacs suspend. Got this error output: Debugger entered--Lisp error: (quit) call-process("ssh" nil t nil "-o" "ControlPath=...
7
votes
2answers
3k views

How to open a file with tramp mode when Helm is active?

I recently started using Helm with the configuration below (require 'helm-config) (helm-mode 1) (define-key global-map [remap occur] 'helm-occur) (define-key global-map [remap list-buffers] 'helm-...
7
votes
1answer
486 views

eshell-visual-commands with tramp

I know that I can add commands to eshell-visual-commands to for example make it so when I run "top" it runs in a temporary ansi-term buffer instead of the eshell buffer, so that programs that rely on ...
6
votes
1answer
793 views

Tramp: killing all buffers

Whenever I use ssh over Tramp to get to my local server (either with dired or pointing directly to a file), another buffer is also created: #<buffer *tramp/ssh user@local_server_address*> When ...
6
votes
2answers
288 views

equivalent of unix “which” for exec-path?

I am trying to debug some bizarre issues with my exec-path settings. When I debug PATH in shell, the key tool is "which", which tells me the absolute path we resolve for a given binary, i.e. (701) ...
6
votes
1answer
749 views

Tramp with 2-factor authentication

I need to use Tramp to connect to a server that has 2-factor authentication. When I log in from the command line or from I get a message asking me to press 1 (and hit enter) which then sends a popup ...
6
votes
1answer
714 views

How to change mode line color based on host?

For terminal, there is an app called byobu which shows different mode line based on host. If I open terminal in system 1, mode line will be like this. If I ssh into system2 from system1, mode line ...
6
votes
2answers
1k views

How to execute sudo command in org-babel in relative path under current working directory

I want to execute sudo command in org-babel like this: #+begin_src shell :dir "/sudo::" :cache no make sudo make install #+end_src It works fine. It use TRAMP /sudo: method. But I need to execute ...
6
votes
1answer
546 views

ctags over tramp

A lot of things including M-x compile work fine over tramp, but find-tag seems to be the exception: it attempts to jump to a location in a local file. Would someone investigate why it's doing this, ...
6
votes
1answer
292 views

Can Magit be configured to NOT touch/read every buffer in Emacs?

Summary: Magit is constantly forcing my tramp/ssh buffers to connect remotely to their source machines. The buffers are all unrelated to the repo I'm working with. How do I stop this? The tramp/ssh ...
5
votes
3answers
3k views

TRAMP vs ssh to remote emacs

Is it considered better to use TRAMP to access remote files on a local copy of Emacs, or to ssh into the remote server and access the files using a remote copy of Emacs in the ssh session? What are ...
5
votes
5answers
6k views

Tramp: Waiting for prompts from remote shell

I added two new lines to my .bashrc so that Bash can find my Go programs: GOROOT=/Users/jay/work PATH=$PATH:$GOROOT/bin But as a result, when I launch Emacs, Emacs hangs for several minutes and I ...
5
votes
2answers
2k views

How to store Tramp passwords permanently

The cache expiry (setq password-cache-expiry nil) works only for the livetime of the emacs client. But I found in the Tramp user manual the possibility to store passwords permanently 5.12.1 ...
5
votes
1answer
1k views

Executing remote commands with TRAMP with a single SSH connection

I'm able to use TRAMP fine for reading/writing files on a remote server. I only have to login to the server the first time I open a file, and from then on I can open files without being prompted to ...
5
votes
2answers
2k views

Tramp: SSH login does not prompt for password

I am trying to use Tramp to log into a server that has no SSH keys, just a password. Unfortunately, upon execution of my /ssh:root@111.111.111.111:~/ command, there is no password prompt and the ...
5
votes
2answers
368 views

Using different theme on tramp buffers (and buffer-related themes in general)?

Is it possible to configure emacs so it uses different theme for tramp buffers than for defaults? Say, I use twilight by default, but while editing sth via ssh I'd like to switch to pastels-on-dark... ...
5
votes
1answer
1k views

Eshell doesn't reuse TRAMP connection for remote subprocesses

I was trying to operate on remote host using eshell and was disappointed to discover that majority of operations would hang emacs for several seconds. I found it surprising considering that normally ...
5
votes
1answer
1k views

Remote shell path - env: No such file or directory

In Emacs, when I open the file /ssh:USER@HOST:/PATH, Tramp mode kicks in and everything is great. While editing the file, I want to open a remote shell as well using M-x shell, but its behaviour is ...
5
votes
1answer
1k views

Making Dired work with FTP on OS X 10.13

So apparently Apple has (stupidly) dropped support for "insecure" Unix commands such as telnet, ftp, etc. in 10.13, or "High Sierra" (see these threads for more info). Unfortunately, I use Dired as an ...
5
votes
2answers
368 views

Edit file as root over when already using TRAMP

Right now, I have the following in my init (defun my-edit-file-as-root () "Find file as root" (interactive) (find-alternate-file (concat "/su:root@localhost:" buffer-file-name))) (defun my-...
5
votes
1answer
553 views

Problem of starting a remote ipython console

I want to connect to remote ipython server, and follow the doc of the ipython, I start a ipython server in my server by ipython3 kernel -f ~/.ipython/kernel.json --pprint and I can start a ipython ...
4
votes
1answer
661 views

Using with-editor

I learned about with-editor in this thread. This is something that I have been looking for a long time. I tried to use it to modify EDITOR and VISUALfollows: I installed it from MELPA, then I open ...
4
votes
1answer
205 views

How can I reset the prompt of my machine before using tramp without having this setting being permanent?

I have a cool looking (at least for me) prompt for my bash shell. This mean that tramp hangs if I try to use sudo to open a file because my prompt looks like something unexpected to tramp. And I ...
4
votes
1answer
206 views

What is the equivalent of /sudo:root@localhost:/ in windows?

What is the easiest way to access files that require admin privilege in windows? I could see similar questions here and here. But I think this would be the right forum to find the best solution for ...
4
votes
1answer
741 views

Efficiently call remote processes

I would like to be able to manage external processes from Emacs, in a way that is: (a) safe w.r.t. arguments escaping for the shell, (b) efficient both for local and remote processes (using TRAMP w/ ...
4
votes
1answer
355 views

Having trouble getting eshell remote shell multi-hop to work

I can get single hop ssh to work just fine: ~ $ cd /ssh:cpatti@wak-prod-jump1:~ /ssh:cpatti@wak-prod-jump1:/home/jumpboxaccess_emergency $ But when I try multi-hop, I get command not found every ...
4
votes
1answer
867 views

Directory tracking in remote shell buffer

I use the shell command via C-u M-x shell to open a shell on a remote server by giving as default directory the path to the remote server (e.g /user@myserver.com:/home/user) (which should have the ...
4
votes
1answer
98 views

remote tramp eshell session changes to localhost

I start a tramp dired session to a remote host with C-x d /ssh:user@host:/ and then start eshell with M-x eshell. This places me at the dired path on the remote host, however as soon as I try to cd ...
4
votes
2answers
425 views

Make run-python etc. use local python

If I use tramp to open a remote file, and subsequently run run-python, it tries to execute in the remote context (which is not what I want and super slow). Any way of specifying a local context or ...
4
votes
1answer
2k views

transparently find file over ssh in *shell* directory

I ssh'd into a remote server from shell and tried to open a file on a directory path that also exists on my local system. The list of files I was able to open using helm-find-files was the list on my ...

1
2 3 4 5 6