Questions tagged [tramp]

An Emacs package which provides a consistent interface for transparent editing of remotely hosted files across a wide range of protocols.

Tramp is an Emacs package, included in the standard library since Emacs 22.1, which provides a protocol-agnostic interface for transparent editing of remotely hosted files. Tramp supports a wide range of protocols, not only those intended for file transfer such as FTP and SCP/SFTP; almost any protocol which offers a remote shell can work as a Tramp substrate.

In general, files accessed via Tramp behave identically in Emacs to files on the local machine, the primary difference in user interface being that a remote file's path includes a URI-like prefix specifying (at least) the host on which the file resides.

Questions specifically relating to the configuration, use, or troubleshooting of the Tramp package should have this tag.

For a quick overview of how to set up and use Tramp, as well as some information on platform-specific pitfalls, visit the Emacs Wiki's page on Tramp; for exhaustive detail on every aspect of Tramp's care and feeding, visit the Tramp user manual.

21 questions
16
votes
4 answers

Directly open remote shell with tramp in emacs

I find that the best to run my shells in remote machines in emacs is using TRAMP (using the ssh command in a local shell does not work for my needs). However, I only know how to run a TRAMP shell if I first visit a remote file with C-x C-f and then…
jmlorenzi
  • 332
10
votes
1 answer

How do you copy files from a remote server to a local folder in emacs using dired/tramp?

When I use tramp to open a remote directory (say C-x C-f /ssh:user@example:/somedirectory), it opens up a dired buffer for that remote directory. The problem is that I want to copy directories and or files from the remote server to my local machine.…
labyrinth
  • 2,686
7
votes
2 answers

How can I tell Emacs TRAMP to use specific arguments to ssh?

I'm trying to set up my Emacs TRAMP to access remote files via ssh, and I would like to add some additional arguments to the ssh command that tramp uses for connecting. Is there a way to do this? I could do it by directly manipulating the variable…
6
votes
1 answer

How to specify for emacs tramp which remote shell to open?

Besides opening remote files, tramp can be used to run a remote shell. Unfortunately, there is a problem. On a local machine i have zsh and on remote server only bash is installed. Issuing M-x shell results in exec: 24: /bin/zsh: not found…
6
votes
3 answers

Tramp: Waiting for prompts from remote shell

I have an issue with tramp against a specific host when I use ssh-keys for authentication. It works fine when I don't use ssh-key authentication, but I would like to prevent entering the password all the time. Don't know if it's related, but I use…
grm
  • 2,602
5
votes
1 answer

Slow TRAMP mode in Emacs

How can I make Emacs TRAMP mode faster? I have ControlMaster auto in my SSH config, and it is working: $ time ssh -v debel echo foo OpenSSH_5.6p1, OpenSSL 0.9.8r 8 Feb 2011 debug1: Reading configuration data /Users/jmdeldin/.ssh/config debug1:…
jmdeldin
  • 203
5
votes
1 answer

OSX Emacs FTP Failing

I use Emacs from Bash. I use C-x C-f to FTP into servers, to work on files. From my OSX (10.6.x), I can connect to all of my servers, but one. From Ubuntu, I can connect to all of my servers, period. The one that I cannot connect to from OSX is a…
Josh
  • 423
3
votes
1 answer

Changing the auto-save frequency when editing files via Tramp / SSH

I am using Emacs (23.3.1) with Tramp to edit files on a remote SSH server. Right now these files are being auto-saved / auto-uploaded about once every minute. During each upload, anything I type does not show until after the upload is finished, and…
3
votes
3 answers

How to troubleshoot Aquamacs / Emacs - Problems opening files with TRAMP

How to troubleshoot Aquamacs, or I guess standard Emacs troubleshooting techniques should work with Aquamacs too. In this case i'd want just to raise the logging level, but i'm interested in other possibilities as well as i'm just getting used to…
Peto
  • 305
2
votes
0 answers

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 ;;;;;;;; ;; Backup remote files locally to stop autosave…
radious
  • 196
2
votes
1 answer

Emacs: Prevent TRAMP connection closing

I'm using emacs with TRAMP ( C-x C-f /ftp:user@site.com:/ ), and randomly, sometimes ten minutes, sometimes, ~12 seconds (no exaggerating) my connection will close (I think). I'll try to type, or list a dir, and it will say "Opening FTP connection…
Josh
  • 423
2
votes
1 answer

How can I make Emacs TRAMP offer completions from my ~/.ssh/config?

When I want to access remote files over sftp in Emacs using TRAMP, I would like Emacs to offer me completions from the hostnames in my ssh config. How can I do this? For example, if I have two hosts in my ssh config, "alpha" and "bravo", when I type…
2
votes
0 answers

TRAMP constantly re-opens connection over ssh

I'm attempting to use TRAMP to for editing files remotely with Emacs (v 26.1), but I'm finding that it's nearly impossible to work without the connection constantly being re-established. This makes it impossible to work without constant…
1
vote
1 answer

Connect to shared drive from Emacs on Windows 7

I am using emacs-w32.exe, invoked from Cygwin, on a Windows 7 machine. I'm trying to connect to a shared drive that I can otherwise access and write to (e.g., by using the Windows explorer), but I am unable to deduce the proper TRAMP (?) setup and…
amp108
  • 133
1
vote
2 answers

Tramp Issue in Emacs 24.4 Installed through Homebrew

I recently installed Emacs 24.4 through homebrew through the command brew install emacs --cocoa I need to edit the files in a remote cluster with two step authentication. To do this I save the login credentials for the remote cluster through…
1
2