Questions tagged [tramp]

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

Filter by
Sorted by
Tagged with
0
votes
2answers
166 views

auth-password-store for ftp over tramp

When accessing remote ftp server with tramp C-x C-f /ftp:user@host#port/ tramp asks me for password. I also use auth-password-store to store passwords in a pass-compatibale fashion, that is, host is ...
1
vote
1answer
650 views

Tramp hangs even without prompting passcode

I'm trying to run tramp in Emacs 24.3 in Ubuntu 14.04. The tramp hangs even without prompting for passcode (RSA Token). I'm able to connect to the remote host from terminal and also from M-x shell in ...
0
votes
1answer
98 views

Tramp and non-existent directories

When I create a new file in a (currently) non-existent directory, the echo area displays: Use M-x make-directory RET RET to create the directory and its parents which I plan on doing as soon as ...
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 ...
3
votes
1answer
1k views

“Invalid base64 data” error when using tramp

I'm using an Intel Edison, and I want to edit files on there with Emacs. I can connect to the device with tramp, using several methods and explore using dired. But trying to visit a file gives an ...
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 ...
1
vote
1answer
220 views

Where does tramp store ssh hosts?

Recently on startup I started getting an OpenSSH dialog warning me of an unknown host key. I then allowed it to store the key, and now I get a a password window at startup. So then I went and ...
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
2answers
600 views

Setting up shortcut using tramp-default-proxies-alist

Not being very LISP-literate, I am having trouble figuring out from the documentation here how to set up a shortcut to allow me to edit a remote file as root. I've successfully set up an ssh-config ...
3
votes
1answer
333 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 "...
3
votes
2answers
3k views

TRAMP hangs after timeout on trying to connect

After I type C-x /remote.server.com TAB /, the prompt changes to spinning bar and nothing more happens. After around a minute of waiting I get the same prompt I was entering, i.e. /remote.server.com:. ...
3
votes
1answer
63 views

When does tramp create a new connection for a process?

What/where is the logic that determines whether tramp reuses its current connection in order to execute a process or creates a new connection? Is it as simple as spawning a process synchronously vs ...
1
vote
1answer
190 views

Ediff directories with remote path (and Prelude?)

I need to compare from time to time the contents (source code) of a remote directory with a local one. And I would like to mark for hiding those files/subdirs that are identical (that is, use the =h ...
0
votes
0answers
257 views

Tramp recreates /dev/null as a regular file

The default tramp history file is /dev/null, which is a big problem because tramp recreates its history file as a regular file when it hits history limit, which is rather annoying. I tried to ...
0
votes
1answer
294 views

communication with remote inferior python shell slowing down code editing

I am working with python code on a remote machine using tramp. Once I start the start the remote python shell, the editor window starts to freeze up for around/under a second second at a time, but ...
1
vote
3answers
490 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 ...
2
votes
1answer
1k 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 ...
4
votes
1answer
344 views

Compile with Tramp hangs or fails when using Tramp with another command

I'm using Tramp with the scpx method to run the compile command on a remote machine. The build takes several minutes to run. If I try to work on something else while that runs that ends up trying to ...
3
votes
1answer
131 views

Save a buffer to multiple files

I have 2 files /home/user/myproject/myfile.el /ssh:user@myserver.org:/home/user/myproject/myfile.el Content of both of them are same. I want to make same change in both of them. I can do it like: ...
2
votes
0answers
172 views

Multihop tramp adds extra carriage returns and gets confused by the output

I am trying to use Tramp to log into a Docker container running on a VM. My Docker-related setup looks like this: (add-to-list 'tramp-methods '("docker-exec" (tramp-login-...
3
votes
1answer
503 views

Can Emacs Eshell show remote man pages in TRAMP mode?

When I'm logged in to a remote machine in eshell I can still do man ls. But it appears that this only work for my local man pages. If I try man yum I'll get a message that the yum man page is not ...
1
vote
1answer
422 views

How to tell Emacs/TRAMP to use the local shell, instead the shell of remote machine?

I have the following function defined in my dot-Emacs: (defun call-shell-refresh-browser () ;; When pressing 'sf', save the content and refresh the browser (interactive) (save-buffer) (...
1
vote
1answer
385 views

Can Emacs open a serial connection behind tramp?

Using for example serial-term, or in lisp make-serial-process one can open a serial port within Emacs. But both will fail if the tty is access on a remote computer thought tramp. Is there any ...
1
vote
1answer
1k views

Identify remote directories and open files through tramp from emacs terminal

Emacs terminal (from multi-term) can automatically detect a folder path. So performing C-x C-f from a local directory, automatically provides the path to that directory to open any relevant files. ...
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 ...
2
votes
1answer
325 views

TRAMP doesn't know some of the remote commands

I'm using my local emacs to edit files on a remote cluster. Therefore I added: [[ $TERM == "dumb" ]] && unsetopt zle && PS1='$ ' && return to my remote .zshrc and I can edit ...
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-...
0
votes
1answer
301 views

cannot connect through TRAMP to university server

I have 2 university server I can connect to and I set up the config files in the ~/.ssh directory to connect to them just by using an alias. Until 1 or 2 days ago both of them were working fine but ...
3
votes
2answers
2k views

Tramp method for Docker

I want to add a Tramp method for opening files from Docker containers. Here's what I've got so far (but it doesn't work): (add-to-list 'tramp-methods '("docker" (...
0
votes
1answer
140 views

Tramp+bookmark crash when setting a different tramp-persistency-file-name file location

I have set tramp-persistency-file-name to a custom location since I want all the files generated by emacs stored in a specific location. (setq files-dir "~/src/emacs.d/vendor/files/") (setq custom-...
2
votes
1answer
462 views

Tramp and Dired: Initial default-directory/dired-directory

I'm trying to use tabbar to setup groups for each remote host where I have buffers open. I need to get the full buffer name, so I can parse the hostname to set the group name. I've figured out how ...
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=...
0
votes
1answer
77 views

Terminfo does not export the up arrow resource

When I use TRAMP and a remote shell, terminfo doesn't export the kcuu1 (up arrow) resource. How can I get Emacs to provide this?
3
votes
2answers
951 views

Tramp: how to add (-A) agent forwarding to ssh connections?

I'm using Magit over Tramp and my git push commands fail because tramp doesn't forward my ssh-agent to the remote machine. In pseudo code, it looks like I need to do the following: tramp-methods["...
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 ...
3
votes
1answer
337 views

How to disable flymake for files edited over network with TRAMP?

My flymake configuration ;; flymake (require 'flymake-cursor) ;; Hoover over error to show help message ;; use pyflakes for Python (when (load "flymake" t) (defun flymake-pyflakes-init () (...
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 ...
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 ...
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 ...
3
votes
2answers
1k views

How to sudo save file in TRAMP mode?

I just started using tramp mode, and it looks amazing. However, there's one issue that's making it non-usable for me. I have several boxes which I log into with one user, say, user. He's in sudoers ...
4
votes
1answer
626 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 ...
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 ...
2
votes
1answer
322 views

running latex on remote host with tramp

I'm trying to run latex on remote host from the local host with tramp. But it seems that it cannot find the file. To be more specific: Update start emacs on localhost: /ssh:user@remotehost:/tmp/...
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 ...
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 ...
1
vote
1answer
726 views

Emacs hangs to due to looking for TAGS file on remote machine

I am working on a local file and I will see these TRAMP messages: Tramp: Opening connection for YYY@XXX.XXX.com using ssh... Tramp: Sending command `exec ssh -l YYY -o ControlPath=/var/folders/4c/...
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 ...
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 ...
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 ;;;;;;;; ...
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 ...