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
10 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
21 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
  • 21.9k
0 votes
2 answers
33 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,808
0 votes
1 answer
20 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
29 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,059
0 votes
1 answer
40 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
21 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
26 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
24 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
32 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
22 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
2 votes
2 answers
100 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
41 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
16 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
0 votes
1 answer
58 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
61 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
67 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
44 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
62 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
40 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
94 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
78 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
61 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
24 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
30 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
0 votes
0 answers
16 views

why does clocking into org mode task in one file require a network connection for different, tramp-connected file?

I have several files listed as org agenda files, one of which is loaded via ssh using tramp. I do all my time tracking in a different file, which is local to my computer. But when I don't have a ...
Dan Drake's user avatar
  • 573
0 votes
0 answers
44 views

Using tramp with "RemoteCommand"

I would like to tramp into a compute node of an HPC cluster. That requires an ssh connection to a login node and then using srun to request an interactive session. If using a terminal, all I need is ...
Daniel's user avatar
  • 3,593
1 vote
1 answer
284 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
335 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
0 votes
0 answers
66 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,632
2 votes
2 answers
209 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,065
1 vote
0 answers
26 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,207
0 votes
0 answers
19 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
0 answers
28 views

Connecting a Windows VM from a Windows environment with Tramp

I've been beating my head against this all day and I cannot for the life of me figure out where this is going wrong. I am trying to connect to a Windows 11 VM from an emacs install on a Windows 10 ...
Dougie O's user avatar
0 votes
1 answer
51 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
85 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
  • 291
0 votes
0 answers
51 views

Debug Magit ssh authentication failure over TRAMP

I am using TRAMP to interact with files on a remote Raspberry Pi device from my MacBook. When I SSH into the remote device with the CLI, git is able to find the associated SSH keys and pull/push from ...
charliesneath's user avatar
0 votes
1 answer
1k 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
  • 589
1 vote
1 answer
195 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
64 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
60 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
57 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
1 vote
1 answer
221 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
  • 321
0 votes
0 answers
20 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
  • 239
0 votes
1 answer
358 views

How to use tramp with an SSH config file?

I have an ssh config file generated by vagrant ssh that looks like this Host default HostName 127.0.0.1 User vagrant Port 2222 UserKnownHostsFile /dev/null StrictHostKeyChecking no ...
BigBoy1337's user avatar
0 votes
0 answers
245 views

Run pre-commit hooks when using magit, poetry, and tramp

This is an emacs & magit version of the following question, with an added twist. https://stackoverflow.com/questions/72839263/access-python-interpreter-in-vscode-version-controll-when-using-pre-...
q.undertow's user avatar
0 votes
0 answers
302 views

Projectile alternative optimized for TRAMP?

I really enjoy Projectile but it continuously doesn't play nice with TRAMP. I was wondering if there were any Projectile alternatives out there. I tried searching the internet but all I get all ...
Noah Huppert's user avatar
0 votes
1 answer
66 views

How to run initialization commands with tramp?

I would like to run some commands on remote host before giving control to tramp. E.g., I would like to load easybuild modules to make sure that environment variables are set correctly for ESS. My ...
Iakov Davydov's user avatar
0 votes
1 answer
200 views

Stop Emacs from reconnecting to SSH when working with a stale TRAMP buffer

After leaving Emacs open overnight, the SSH connection expires. However, the buffers that I left open, are still useful, and I want to continue working with them. However, any action I do with Emacs (...
xelibrion's user avatar
  • 101
0 votes
1 answer
20 views

Outputs are truncated in a remote shell buffer over `tramp`

When I run ps -ef | grep python3 in my kitty terminal, I get root 2331 1 0 Jun22 ? 00:00:00 /usr/bin/python3 /usr/bin/networkd-dispatcher --run-startup-triggers root 2667 1 ...
Saddle Point's user avatar

1
2 3 4 5
9