Questions tagged [tramp]

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

TRAMP is now part of the main Emacs core.

TRAMP enables Emacs edit remote files locally. TRAMP handles many common access protocols, authentication methods, including editing as or as a different user on remote files. TRAMP transparently handles and features on remote file systems.

TRAMP supports many of the standard connection methods, ranging from telnet or rhs to ssh and scp. On Windows operating systems, TRAMP uses the PuTTY package to make remote connections using plink.

403 questions
46
votes
7 answers

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, such as crontab -e especially because shell-mode…
Tikhon Jelvis
  • 6,152
  • 2
  • 27
  • 40
24
votes
2 answers

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 every action. It's not a problem on the server's…
m0meni
  • 743
  • 1
  • 6
  • 17
15
votes
2 answers

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, other than a lack of X11 forwarding, which…
PythonNut
  • 10,243
  • 2
  • 29
  • 75
15
votes
2 answers

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 (encoding the file with gzip). This is much slower…
Chris
  • 252
  • 2
  • 5
15
votes
3 answers

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/file followed by M-x R to launch an R…
David LeBauer
  • 433
  • 2
  • 10
13
votes
2 answers

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 sudo command relative under current working…
stardiviner
  • 1,888
  • 26
  • 45
13
votes
1 answer

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 key, so no password is needed. Therefore I don't…
darkpool
  • 231
  • 1
  • 4
12
votes
1 answer

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 Unfortunately, inside of Eshell this won't work: ~ $ cd…
user2005
11
votes
1 answer

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 /remotehost:somedir; then commands). (I chose this method…
11
votes
3 answers

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 in ~/.ssh/config. The connections are fine, I've…
jmay
  • 363
  • 2
  • 9
11
votes
2 answers

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 through the step on the remote host put in .emacs…
DJJ
  • 732
  • 5
  • 19
11
votes
3 answers

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 triggered with C-c C-c): Run Python:…
cjauvin
  • 594
  • 4
  • 15
10
votes
2 answers

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 to Create repository in…
spacegoing
  • 419
  • 2
  • 9
10
votes
2 answers

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 doing this somehow in the past (maybe thanks to…
Tikhon Jelvis
  • 6,152
  • 2
  • 27
  • 40
10
votes
2 answers

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-buffers-list) (define-key global-map [remap…
Jens Kubieziel
  • 681
  • 10
  • 26
1
2 3
26 27