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
4k 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, ...
1
vote
3answers
566 views

Honor default-directory in ansi-term

When I launch an ansi-term in a remote (TRAMP) buffer, I'd like the resulting shell to reflect the current default-directory. That is, I'd like ansi-term to give me a remote shell, so I can do things ...
10
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 ...
5
votes
5answers
7k 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 ...
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=...
2
votes
1answer
2k views

Tramp: Waiting for prompts from remote shell… Sending command `exec ssh -e none bin'

Tramp hangs for several minutes every time I launch Emacs, giving me these errors: Tramp: Opening connection for bin using scp... Tramp: Sending command `exec ssh -e none bin' Tramp: Waiting for ...
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 ...
13
votes
2answers
975 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/...
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 (...
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 /...
6
votes
1answer
827 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 ...
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 ...
4
votes
1answer
723 views

Tramp login with 2-factor authentication

To ssh, the server I am connecting to needs a password followed by an RSA-like key. It goes: Password: Verification code: I've read Tramp with 2-factor authentication, but it does not solve the ...
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 ...
4
votes
1answer
105 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 ...
3
votes
1answer
352 views

OS X ~ vs Linux ~ in Tramp

I'm setting up a remote editing capability through Tramp from my Mac OS X laptop to an Ubuntu box, and have defined the following: (setq tramp-default-user "myusername" tramp-default-host "...
2
votes
2answers
2k views

How to debug hanging tramp connections?

With recent versions of Emacs, tramp routinely hangs at the time of making the connection. The *Messages* buffer gives no information. Is there a way to get more information as to what's happening? ...
2
votes
1answer
1k views

Tramp just hangs “Found remote shell prompt on”

When I try to connect to my office computer with tramp: C-x f "/ssh:office:" it shows me the message: "Found remote shell prompt on" and then completely hangs. I have to terminate with C-g, if I hit ...
1
vote
2answers
625 views

magit with tramp is not working with git correctly

I installed magit. I added the following lines to my .emacs: (require 'tramp) (push "/path/to/git/directory/" tramp-remote-path) And when I am in tramp I run M-x magit-version here is the output: ...
1
vote
2answers
662 views

Get TRAMP working with cygwin sshd

I'm using both the latest Cygwin and the latest (released) Emacs. I'm trying to remote in from a Linux box to a Windows box running a Cygwin configured sshd. I've added this line to the top of my ....
6
votes
1answer
584 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, ...
4
votes
1answer
203 views

Are there TRAMP mode log files? If so, how to access them?

Having here some troubles with TRAMP mode and already set (customize-set-variable 'tramp-verbose 6 "Enable remote command traces") in .emacs file. But main problem is that Emacs is stuck in TRAMP ...
4
votes
1answer
204 views

How can I diagnose which `git` magit is running?

I'm trying to use Magit with TRAMP. The remote host has multiple git versions, necessitating (add-to-list 'tramp-remote-path "/usr/sup/bin") in my .emacs. However, when I run magit-status in a ...
3
votes
1answer
1k views

cant connect with TRAMP (tramp-file-name-handler: Couldn’t find local shell prompt for /bin/sh)

I have a weird issue in emacs with TRAMP. i can ssh via M-x ssh to a machine (zlap) from within emacs with no issue. yet when i try to use C-x C-f (find file) it hangs after i enter the passphrase. ...
3
votes
2answers
1k views

magit with tramp is slow

Here is my environment: project A is on the server. My PC connects to the server by 1 Gbit ethernet. Ping latency between PC and server are about 0.3 ms. project A's source code size is about 75 MB. ...
2
votes
1answer
55 views

How to resolve TRAMP spamming empty messages

Connecting to a remote machine with tramp that may have VC (subversion) related files, I tend to see a large number of repeated messages in the *Messages* buffer. For example: Type "q" in help ...
2
votes
3answers
4k views

tramp and sudo: how to edit files under another account

On local machine, I am using the account as test1, and I could use the same account to login remote server. After login as test1 on remote server, I could run sudo su - oracle to change as oracle user,...
2
votes
1answer
305 views

Tramp using su fails with powerline prompt

I'm having a weird problem opening files as root. From emacs -Q, I issue (require 'tramp), customize tramp-verbose to 10, and try to open a file as root: C-x C-f /su::/etc/fstab. I'm then prompted for ...
1
vote
2answers
190 views

Eshell and Dired are unable to extract port number from authinfo file

My default-directory is: /ssh:lawlist@12.34.567.89#2222:/home3/lawlist My .authinfo file contains: machine 12.34.567.89 login lawlist password abcdefg The above-combination works just fine. ...
0
votes
1answer
39 views

tramp runs on odt export --

this is slightly embarrassing, but i'm confused about it so: i run emacs 26.1, org 9.3. when i use the org exporter to export a file to odt format, tramp fires up and runs on the newly created file. ...
0
votes
2answers
2k views

Can't connect to remote ssh host using tramp on Windows

I have 2 operating systems: Windows XP and Linux Slackware. In both operating systems I have the following text in ~/.ssh/config: Host beta HostName <server IP> User beta Port 22 I can ...
0
votes
1answer
2k views

How do I open an ansi-term on a remote server via Tramp?

I am editing a file on a remote server via Tramp, and I decide that I want to open up an ansi-term session on the remote server (as opposed to relying on shell-command). How do I do this? When I run ...