Skip to main content
OverflowAI is here! AI power for your Stack Overflow for Teams knowledge community. Learn more

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
0 answers
39 views

MIT-MAGIC-COOKIE error Emacs terminals

I get Invalid MIT-MAGIC-COOKIE-1 key while I try to open an x11() window using R from within Emacs. I try both vterm, eshell, shell and ssh and all return the same error. If I try the same from ...
Riccardo's user avatar
  • 133
1 vote
1 answer
34 views

Tramp scp access without interactive ssh shell

I use a commercial backup server to which I can copy and access files with scp, rsync and some other ways. I can also do ssh USER@SERVER COMMAND for some commands, like ls, quota, rm etc., but I am ...
pst's user avatar
  • 276
0 votes
0 answers
19 views

Cant' delete files/directories on Synology

I'm on macOS 14.4.1 and have Emacs 29.2 plus installed from Homebrew. I have an access problem with Dired on my Synology when I try to delete files: "file-error: Removing old name: Operation not ...
Emax2020's user avatar
0 votes
0 answers
10 views

Org-babel remote inline images with TRAMP not exporting in org export

I am trying to find a way to get the images generated in my remote server exported to a HTML locally. Orgmode of a local analysis works as expected, but if I have tramp enabled with: #+PROPERTY: ...
lf_araujo's user avatar
  • 123
1 vote
2 answers
98 views

connect with tramp, sudo and edit a file as root in GCP

I have a virtual machine in Google Cloud Compute where I can ssh/login as my own user, and then sudo to root in order to access files used by a systemd service. I would like to edit these files ...
dmvianna's user avatar
  • 392
0 votes
1 answer
25 views

Tramp not reusing connections for Git commands

I am debugging a very slow performance of git commands over SSH, including via packages such as VC and Magit. Even using VC on emacs -Q is extremely slow. I get Tramp: Opening connection git for <&...
Arthur Colombini Gusmão's user avatar
0 votes
1 answer
61 views

Remote LSP unable to find texlab server

I need to setup lsp to work on LaTeX file in a remote machine. I installed texlab both in local and in remote machine and add the path to the remote texlab in my emacs (spacemacs) init file as follow: ...
Riccardo's user avatar
  • 133
0 votes
1 answer
77 views

Run Emacs on Windows host, docker container on Linux server

I have a Windows 10 machine at work, on which our IT refuses to install Docker. Instead, they want me to run Docker on a remote Linux server that I access through PuTTY. I have a PuTTY session called &...
Rodney Price's user avatar
0 votes
0 answers
31 views

Why is sudo not working in org babel tramp?

I have this code here. I also tried adding sudo touch. The only thing that seems to work is if I run it as a normal bash org code and use the SUDO_ASKPASS variable. #+begin_src bash :results output :...
ritchie's user avatar
  • 159
0 votes
1 answer
55 views

Use Flycheck over Tramp

I have a running docker containing simple C source file makefile and compile_commands file generated by bear. What I want to do is to make Flycheck-clangcheck lint my C code on the fly. However when I ...
tvishy's user avatar
  • 1
0 votes
1 answer
194 views

Tramp (from straight) fails in emacs 29

After switching to fc39, emacs fails to load tramp via my use-package statement: (straight-use-package 'use-package) (setq straight-use-package-by-default t) ... (use-package tramp) The error is as ...
Rob Kramer's user avatar
0 votes
1 answer
33 views

org can't execute on remote machine

I have a .org file on my laptop that I use to run code on a remote server. However, when I try to execute the code I'm getting Tramp errors. My local org file has the following header: # -*- org-...
Tyler's user avatar
  • 22.3k
0 votes
2 answers
49 views

Helm-projectile comes with docker-tramp, and haven't figured a way to solve it

I use Doom Emacs. When starting with an empty configuration and adding the following line: (use-package! helm-projectile :custom (helm-projectile-on)) Save it and restart Emacs, then I get ...
ReneFroger's user avatar
  • 3,880
0 votes
1 answer
31 views

`tramp-verbose` setting has no effect on `*debug tramp*` buffer

Emacs 29.1, Tramp 2.6.0.29.1 I believe the log messages in the *debug tramp* buffer are slowing down TRAMP. With the tramp-verbose set to the default value of 1, my *debug tramp* buffer accumulated ...
Peter Becich's user avatar
0 votes
0 answers
70 views

How to interact with fzf on remote machine with tramp mode

Suppose, we work on a remote server with project files. The project files are located in directory: /ssh:server:/home/user/onetouch/lib I created the following bash script: #!/bin/bash find /home/...
user4035's user avatar
  • 1,069
0 votes
1 answer
66 views

How can I org-store-link when ssh sudo hopping?

I open the file like this, with hopping: C-x C-f /ssh:b0ef@ximian|sudo:ximian:/etc/nixos/configuration.nix RET If I call org-store link, I get this: [[file:/sudo:root@ximian:/etc/nixos/configuration....
Jason Hunter's user avatar
0 votes
1 answer
35 views

Match multiple machines with criteria in connection-local-criteria-alist

Background The actual problem I'm trying to solve is that Tramp does not use the PATH of the remote machine it's SSH-ing to. One workaround is to from the client set PATH depending on which machine ...
Rovanion's user avatar
  • 987
0 votes
0 answers
42 views

Cannot save as root with tramp: “Unlocking file: Permission denied”

I'm using Emacs 27.1 in the terminal with tramp version 2.4.3.27.1. This is on a remote server over SSH. I can load files as root using tramp paths such as: /sudo:root@hostname:/etc/hosts or /sudo::/...
Ian Mackinnon's user avatar
0 votes
0 answers
49 views

reopen-with-sudo command that works through tramp?

I have tried to define this command: (defun etc-reopen-with-sudo () (interactive) (let* ((vec (tramp-dissect-file-name (buffer-file-name (current-buffer)))) (method (tramp-file-name-method ...
Joseph Garvin's user avatar
0 votes
0 answers
55 views

How to use connection-local-set-profiles to set inferior-ess-r-program when on using ESS over TRAMP?

This is a similar question to this other that remains unanswered. I am doing some work in the R language with the ess package on emacs on a remote computer to which I connect via tramp/ssh. The remote ...
aramirezreyes's user avatar
0 votes
0 answers
30 views

"Tramp failed to connect" to any ssh server (gpg as an ssh agent)

Is anyone able to use Tramp with a gpg smart card or a gpg agent that manages ssh socket (so acts as an ssh agent)? For me it fails with file-error "Tramp failed to connect. If this happens ...
Daniel Krajnik's user avatar
4 votes
2 answers
250 views

How to tell tramp to not ask me about autosave on local directory?

Sometimes, when I edit a file with tramp, it asks me: "Autosave file on local temporary directory, do you want to continue?(yes or no)" I want to continue in any case. How can I disable this ...
Philipp Ludwig's user avatar
0 votes
1 answer
60 views

Can eshell provide TRAMP auto-completion?

If I use find-file with a TRAMP method to navigate to a remote file in a docker or kubernetes container I'm provided with auto-completion: C-x C-f /docker:frosty_cori:/home In the example above, if I ...
Caterpillar's user avatar
0 votes
0 answers
21 views

Freezing when using gdb via TRAMP with gdb-many-windows enabled

The problem may be because I am doing this via Tramp, connecting to an Amazon ec2 instance where gdb is installed. I had Emacs 28.2, and now I've upgraded to 29.1 and the same problem occurs. If I ...
Eric Auld's user avatar
1 vote
1 answer
79 views

Tramp resets file buffer encoding to UTF

I edit my files in cp1251 encoding. This works fine on local host but when I save files on remote host using tramp it resets encoding to utf-8 constantly. Even if I do (set-buffer-file-coding-system) ...
George Potapov's user avatar
0 votes
1 answer
80 views

dired, zip as a directory

With archivemount, one can mount a zip file. Is there any way to treat a zip file just like a directory in dired? The we wouldn't have to unzip the archive, which takes time and you probably need to ...
Jason Hunter's user avatar
0 votes
1 answer
166 views

Why does TRAMP not work when ssh to a normal user?

Question I setup a SSH server on a Gentoo machine. I copied my identity file (public key) to the server under both the /root/.ssh and /home/i/.ssh (assuming the username is i). And I edit my /etc/...
k0takuk1's user avatar
0 votes
1 answer
56 views

Tramp Scan Error

I'm getting the following error from tramp (v2.6.0.29.1) when I attempt /-:|sudo:: and tramp-save-ad-hoc-proxies is true. I'm running this in a docker container in WSL2. I've tested it with my home ...
Todd's user avatar
  • 211
0 votes
0 answers
109 views

With tramp, how to use a remote-shell that contains spaces in the path?

I'm using Linux and I'm trying to tramp into a Windows machine. I'm trying to set the remote-shell option of tramp because tramp's default of /bin/sh doesn't work for a Windows remote host. I'd like ...
John Smith Optional's user avatar
0 votes
0 answers
52 views

Tramp from Linux into a Windows machine and use the language development server from the Windows machine with eglot?

I think everything is in the title. I use Linux on a day to day basis. I'm going to occasionally have to edit a C# project that is on a Windows machine. There is a C# development environment installed ...
John Smith Optional's user avatar
0 votes
1 answer
147 views

What configuration file should I modify to affect tramp configuration?

I am new to Emacs. I run Linux. I'd like to tramp into a Windows machine, so that I can edit the files on the Windows machine from the comfort of my Linux system. Apparently, you have to change the ...
John Smith Optional's user avatar
1 vote
1 answer
85 views

How to overwrite protected files in dired

I was trying to copy my some of my config folders to another system which was mounted with root privileges using dired. I opened both surrounding folders using /sudo::/... and tried to copy my files ...
Alexander Praehauser's user avatar
0 votes
2 answers
71 views

Edit File on USB :: umount Target is busy

If I insert a USB drive and edit a file on it, then kill the buffer, I have to wait atleast five minutes before I'm able to umount the drive $ sudo umount /dev/sdl1 umount: /mnt/sdl1: target is busy. ...
Jason Hunter's user avatar
0 votes
1 answer
27 views

On tramp shell, commands like `head`, `tail`, `man`, `git log`, etc... output all text at once instead of prompting

I use tramp-shell for ssh to another machine. Setup as follows: (defun spawn-shell (name) "Invoke shell test" (interactive "MName of shell buffer to create: ") (pop-to-buffer ...
Noah's user avatar
  • 121
0 votes
0 answers
34 views

Random warning popping up occasionally when using eshell

I occasionally get this warning while running eshell: Warning (comp): tramp-loaddefs.el.gz:745:2478: Warning: reference to free variable ‘tramp-remote-path’ and was wondering how to fix it. According ...
user129393192's user avatar
1 vote
1 answer
468 views

Emacs/Tramp fails to connect with ssh key equiped with a passphrase

I have problem connecting via ssh using Tramp in Emacs on MS-Windows whenever the private ssh key I use is configured with a passphrase. Here's the problem : I. What works : On the command line ssh -...
Thibault Cimic's user avatar
1 vote
1 answer
516 views

Can I use a local language server for remote files?

Is it possible to have eglot use a language server running on my local machine to work on files on the remote machine? I'm trying to edit TypeScript files on a remote server. I can visit the file just ...
Evan Davis's user avatar
1 vote
0 answers
78 views

org-mode show image inline from remote server

I would like to execute a dot command from remote server, then show the output png image in my org-mode. * remote dot demo #+NAME:dotsrc #+begin_example digraph RecordShapedNodes { rankdir="...
lucky1928's user avatar
  • 1,668
2 votes
2 answers
420 views

How can I use Tramp's SSH on Windows 10 with the native ssh.exe?

Windows 10 has its own ssh.exe. I can use ssh.exe fine within eshell, but not for Tramp, e.g. /ssh:user@host:/tmp. Is there any way to enable Tramp with the built-in ssh (OpenSSH_for_Windows_8.1p1, ...
Zeta's user avatar
  • 1,103
1 vote
0 answers
34 views

How to (temporarily) override the ssh executable that TRAMP uses?

For reasons that I don't want to get into, for some ssh connections I need to use an executable different from the one that TRAMP uses by default. Therefore, I am looking for a convenient way to ...
kjo's user avatar
  • 3,247
0 votes
0 answers
24 views

How to fallback to $HOME if Tramp failed to connect to default-directory

If I call find-file from a buffer with default-directory pointing to a remote server via TRAMP and the remote server is not reachable, then TRAMP complains: tramp-signal-hook-function: Tramp failed ...
Thomas Koch's user avatar
0 votes
1 answer
68 views

Tramp to Windows

No matter what I try, I can't tramp to Windows;) I need to turn on debugging, but where does this debug output end up? All I see is a socket in /tmp when I enable this: ;The debug buffer is written as ...
Jason Hunter's user avatar
0 votes
0 answers
133 views

tramp: permission denied when connecting with ssh

tramp: I am using the command: /ssh:[email protected]:/home/owner/.ssh/handson.pem I get permission denied. puplickey, wssapi-keyex, gssapi-with-mic ssh in the shell works I tried this solution,...
David's user avatar
  • 299
1 vote
1 answer
2k views

how to configure Eglot over TRAMP?

On my laptop, I'm using eglot (sometimes lsp-mode) with pyright language server. But Now I'm trying to write some python code on Raspberry Pi (using ssh/TRAMP, in local network, from my laptop). I ...
Garid's user avatar
  • 641
2 votes
1 answer
294 views

how to execute sudo su --login username command with TRAMP

I have this weird setup that once I log onto our server with the sudo uat command, I will be logged in with my own user dadinn@uat. I have set up .ssh/config so that uat is really an alias for ...
Daniel Dinnyes's user avatar
1 vote
1 answer
78 views

realgud sets wrong path through tramp when setting breakpoint through GUI

I'm on my Windows machine with a file open on a remote linux server through tramp. I'm using realgud:gdb to debug my C++ file. In the (gdb) prompt, I can set breakpoint just fine using (gdb) b /path/...
JakeTuero's user avatar
0 votes
0 answers
93 views

Problem connecting to webdav share with path in sharename using TRAMP

I would like to connect via TRAMP to a webdav share where I have some files. I can mount the share in Gnome 42 (Fedora linux) without a problem and explore it with Nautilus. However, when I try to use ...
Manuel del Jesus's user avatar
0 votes
0 answers
78 views

How to automatically convert between remote and local file names?

I have /local/laptop/dir mounted in my Docker container at /container/path. In Emacs tramp terms, it is /docker:container-id:/container/path. This also comes up when the user ssh to a remote system ...
pedz's user avatar
  • 375
2 votes
1 answer
285 views

Using TRAMP for accessing Nextcloud

I would like to use TRAMP to access my Nextcloud server. The TRAMP documentation regarding Nextcloud is a bit cryptic and requires some 'Online Accounts' application, which seems to be available only ...
Martin's user avatar
  • 331
0 votes
0 answers
26 views

Issue seeing files in dired directory or shell on remote machine

This used to work fine but seems to have broken today and I have not knowingly made any explicit changes to configuration. If I use a standard terminal (mac) and ssh into my server I can visit a path ...
user27815's user avatar
  • 249

1
2 3 4 5
9