Questions tagged [tramp]

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

70 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
6
votes
0answers
2k views

Tramp freezes Emacs with OpenSSH on Windows

I just installed Emacs on my Windows machine for remote file editing using Tramp. However, I noticed than whenever I try to connect to a remote server (C-x C-f /ssh:home:), Tramp just displays Opening ...
5
votes
1answer
650 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
0answers
813 views

Projectile not remembering remote projects

I'm using spacemacs and regularly use Tramp (via /sshx:) to open files, once I've opened a file in Tramp I can use projectile without any problems. However, projectile doesn't remember these projects ...
4
votes
0answers
121 views

Get Administrator privileges on Windows via TRAMP?

I constantly use /sudo::/ URI schema on Linux to edit protected files. Is there something similar on Windows? Currently I start Emacs with Administrator privileges but that can lead to write ...
3
votes
0answers
616 views

Tramp hanging on writing or opening file

Tramp consistently hangs, for me, when opening or writing a remote file. None of the ‘why is Tramp hanging...?’ resources I've found seem to address my situation. What's odd is that this used to ...
3
votes
0answers
436 views

does tramp actually copy file from remote to local?

when working in terminal with ssh I think what gets transferred is just the characters of the screen in view. while in emacs tramp mode working with remote files, I'm not sure, does it copy files to ...
3
votes
0answers
2k views

Tramp keeps opening the connection

Once I connect to a remote computer using tramp. It connects but tramp keeps trying to open the connection. This is the output that is printed again and again. Tramp: Waiting for prompts from ...
2
votes
1answer
76 views

How to disable magit on remote files with tramp?

I'm working with Emacs on windows, I usually work locally, but I want to disable magit when I'm working on a remote file. I'm trying to add a hook that disables magit when it detects that the file is ...
2
votes
0answers
89 views

Random freezes with `error in process filter: Quit`

I'm getting random freezes with the error message: error in process filter: Quit. I'm using tramp-mode with emacs 26.1 on macOS. It seems to maybe be linked to typing symbol characters like %, $, etc. ...
2
votes
0answers
60 views

tramp seems to always use out-of-band methods for a simple copy or rename, despite both files being remote

I noticed a huge slowdown when renaming a remote directory via tramp in dired mode, especially pronounced when the remote host had a slow internet connection. I investigated and saw tramp was first ...
2
votes
1answer
92 views

messages buffer is spammed with tramp

I am connecting regularly to servers via tramp. Sometimes everything works fine but often times my messages buffer gets spammed full of Tramp: Waiting for prompts from remote shell...done Tramp: ...
2
votes
1answer
463 views

edit a file on remote server using an existing session(by clone it)

I am able to clone a session after configure the configure file under .ssh cat .ssh/config host * ControlMaster auto ControlPath ~/.ssh/master-%r@%h:%p ServerAliveInterval 60 After I connect to the ...
2
votes
0answers
192 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-...
2
votes
0answers
912 views

Helm not working on remote project (Tramp over SSH)

I'm working on a project that is kept on a shared server (server runs Ubuntu 14.04 LTS; my machine runs OS X 10.10.2). I access the server files via Tramp using a password-secured SSH connection. ...
1
vote
0answers
35 views

SSH connects, TRAMP doesn't

this is a lot like the issue described here already. It seems like the fancy prompt issue, however, I've tried to use sshx which I was told would solve this issue. I an wondering if anyone else have ...
1
vote
0answers
43 views

Tramp can't connect - cannot find ssh

I am trying to use Tramp, but it seems unable to execute the ssh command. Here is the error from *Messages*: Tramp: Opening connection for AWS2 using ssh... Word wrapping enabled Tramp: Sending ...
1
vote
0answers
58 views

How to disable tramp autosave and backups, but keep other backups/autosave?

I'd like to disable autosaves and backups when using tramp, because I neither want to save stuff from remote machines nor stuff belonging to root in my backup/autosave directory. How to do that? I ...
1
vote
1answer
46 views

Using `dired-do-compress-to` with `tramp`

Within a eamcs -q session and in a tramp dired buffer and call dired-do-compress-to on a file, I got this eror zip I/O error: No such file or directory zip error: Could not create output file (/ssh:...
1
vote
2answers
107 views

Cannot open remote file with TRAMP

I'm trying to connect and edit files on my openwrt box. But every time I tried Emacs shows me a blank buffer. C-x C-f /ssh:user:192.168.200.1:/etc/config/network RET the filesystem on openwrt cat /...
1
vote
0answers
125 views

How to disable eldoc when using TRAMP (editing files over SSH)

Eldoc really bogs down the editor when used over SSH with TRAMP. I want to disable it in those cases. What I've tried is this: (defun no-tramp-eldoc () (interactive) (when (string-prefix-p "...
1
vote
0answers
107 views

Disable ispell when using Tramp

In my Spacemacs, I enabled the spell-checking layer which enables ispell. I noticed that my Tramp connection is very slow, and after debugging, I found that one of the causes is ispell: 02:07:20....
1
vote
1answer
122 views

dired-do-copy in tramp does not go to local when `\ C-j` is pressed. File path stays in the same directory

I am using dired-do-copy to copy a file from remote using tramp to local. When Copy file to path is promted. I used / C-j to go to local path but the path stays in the same directory , does not go to ...
1
vote
0answers
713 views

Editing a file with emacs over ssh on remote machine

I am editing configuration files with emacs on remote hosts using ssh connection. It works perfectly. But I recently made RSA keys and now I can connect to these hosts with the keys without password, ...
1
vote
0answers
129 views

Use Eshell with Tramp, from a Windows computer to a Linux server

I use a Windows computer to control servers through Tramp (with plink). Here's my setup: (setq explicit-shell-file-name "/bin/bash") (setq default-directory "/plink:user@server:~") Now when I run M-...
1
vote
1answer
102 views

How to set a default password for wildcard host in tramp?

I have a list of hosts 192...* with a default user and password, I've tried to set wild-card in .authinfo.gpg but it still requests password when I try to login. There are no problems when it set ...
1
vote
0answers
29 views

Find dirrectories paths from a list of names via tramp session

I have a remote host accessing via tramp there is a list of directori names I'd like to find on that host. What I do now - connect to remote server and while read -r name; do find / -type d -name "$...
1
vote
0answers
499 views

Tramp fails to open remote shell when connecting to android

I'm trying to connect to my Android device via SSH using TRAMP. I've setup my SSHDroid, configured ssh keys and my ~/.ssh/config, so I'm able to connect with just ssh android from terminal. But when ...
1
vote
0answers
61 views

Folder navigation on remote windows machine can't see folders with spaces

I've been trying to navigate folder structures on a remote Windows machine with Cygwin installed, but I can't seem to navigate to folders which contain a space in them. Emacs claims that "File no ...
1
vote
0answers
664 views

Why are my .dir-locals not being applied even though they are loaded

Still on a never ending quest to get per project settings working for python using tramp and .dir-locals. Hitting a strange problem when I open a buffer I am asked if i would like to run my .dir-...
1
vote
0answers
263 views

Emacs password cache not working as hoped

(1) I have (require 'password-cache) (setq password-cache-expiry nil) set in my .emacs file. (2) When I connect to "machine" via tramp with: dired /ssh:user@machine: I get logged via ssh and ...
1
vote
0answers
346 views

How can i resolve tramp-error: Not a Tramp file name: using a /docker address?

Trying to set up .dir-locals to use a custom python interpreter inside a container so i can use run-python and get the REPL inside the container. I have this setup which seems to partially work in ...
1
vote
0answers
422 views

A Tramp file is stuck in my buffer cache

I'm using Emacs 25.3.1 with Spacemacs 0.200.9. I have Ivy installed. At some point in the past, I opened a Tramp session to a local machine over SSH. Now, when I'm not on that network and I try to ...
1
vote
0answers
147 views

tramp variant of `call-process-region`

What is the remote variant of call-process-region or an easy way to implement it? I tried (let ((fh (find-file-name-handler default-directory 'call-process-region))) (apply fh #'call-process-...
1
vote
1answer
213 views

Python-Repl issues with TRAMP Mode [windows->Linux]

I have an issue when using python-mode remotely through tramp. I'm trying to use the repl and pass a test function using C-c C-c, however this seems to create a local file at my own computer or ...
1
vote
2answers
350 views

Tramp session fails to recover from inactivity

When a Tramp session over SSH has been inactive for some time, it fails to wake up again and just hangs Emacs. How can I ensure that Tramp will either renew the connection, or time out before too long?...
1
vote
0answers
462 views

How to evaluate source code block on remote host?

I am working on windows machine. I have last org version (from February 2017). I have a remote host accessible by putty, where i have created org file of the following contents: #+TITLE C language ...
1
vote
0answers
368 views

Can I write to a local file from a remote session using an Org-babel R code block?

I'd like to find a way to evaluate my R code remotely, but insert images into my local org file. I use R code blocks in my org files and insert images into the org file with something like this: #+...
0
votes
1answer
29 views

Tramp/Emacs 27 freeze on Mac

I'm facing a major issue with Tramp and Emacs 27.1 on a Mac (10.15.7), which makes it almost impossible to work on remote files ... As soon as I start to type a SSH or SCP based URL in the mini buffer ...
0
votes
1answer
39 views

How to stop ivy-switch-buffer from trying to connect

I'm using ivy-use-virtual-buffers to see both currently and recently visited buffers in Swiper's ivy-switch-buffer and it worked great until last month when I opened distant files via ssh/Tramp. Ever ...
0
votes
0answers
17 views

Local magit revives all stale tramp connections

I'm using long-living emacs sessions using emacs in daemon mode, and I use tramp quite extensively. I usually have several buffers in the background which use tramp, but since my system has been ...
0
votes
0answers
28 views

Unexpected local shell in TRAMP mode

I have a clear installation of spacemacs with layer shell on. I open remote dir SPC f f ssh:<host>:<path> I open shell SPC ' Shell is local (I expect it to be opened on the remote host)
0
votes
0answers
31 views

Emacs tries to read init.el from remote machine during start-up

I have a very weird issue since a few days without being aware of any change in my set-up. I run Emacs 27.1 (on macOS installed via macports) on my laptop and on my desktop computer with a very ...
0
votes
0answers
24 views

Cannot connect to WSL using Tramp (all localhost)

this is my %USERPROFILE%\.ssh\config Host wsl User daniele Port 2222 HostName localhost If I open a cmd and run ssh wsl everything works like a charm. But when I try: C-x C-f /ssh[x]:daniele@...
0
votes
0answers
35 views

Emacs hangs/freezes if vpn connection is lost

Every so often when Emacs is open and I edit some file via tramp and an established vpn connection and this connection is terminated and then reestablished, I cannot get Emacs to continue working. All ...
0
votes
0answers
33 views

How to tell Tramp to load a remote .bashrc before executing commands remotely?

Problem: I have an elisp plugin which is failing on a call to start-file-process when executed within a remote directory. The issue is that the command I am trying to call with start-file-process ...
0
votes
0answers
27 views

/bin/top not found in eshell over ssh

How does eshell resolve its PATH? If I run my top in eshell on my local machine, it opens a new buffer and shows the output of the command in it. However, if I do the same on an eshell run on a remote ...
0
votes
1answer
34 views

“Tramp: Opening adb shell connection…failed” + extra characters ^[7 and ^[8 present

It happens when I try to connect from emacs-26.3/tramp-2.3.5.26.3 onto my sgs5's lineageos14.1 adb shell. *tramp/adb d73896d9* buffer contents is the following: nv COLUMNS=1 ls -d -l /; echo ...
0
votes
0answers
72 views

terminal mode (with -nw) vs gui mode

Now I read lots of good stuff about spacemacs and want to try it out. I like the way iterm2 separates hosts/projects cleanly. Can I use iterm2 + spacemacs (maybe in terminal mode?) Or do I lose most ...
0
votes
0answers
115 views

Flycheck Trouble with Tramp and Python: “no module named /ssh:…/home/ubuntu/test.py”

Hi and thank You for helping! Overview I run a Linux Container (Guest) on my Machine (Host). On this guest I installed python3. Too, there I have a file "test.py". I edit this file via Emacs ...
0
votes
2answers
54 views

Unable to find files with ssh and environment variables

I have installed exec-path-from-shell as well as included the following in my init.el (when (memq window-system '(mac ns x)) (exec-path-from-shell-initialize)) within my ~/.bash_profile I have ...