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
1 answer
29 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 -...
1 vote
1 answer
25 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 ...
0 votes
0 answers
22 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="...
  • 1,580
0 votes
3 answers
41 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, ...
  • 992
1 vote
0 answers
20 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 ...
  • 3,095
0 votes
0 answers
12 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 ...
0 votes
0 answers
21 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 ...
0 votes
1 answer
30 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 ...
0 votes
0 answers
49 views

tramp: permission denied when connecting with ssh

tramp: I am using the command: /ssh:ec2-user@xxx.xxx.xxx.xxx:/home/owner/.ssh/handson.pem I get permission denied. puplickey, wssapi-keyex, gssapi-with-mic ssh in the shell works I tried this solution,...
  • 279
0 votes
0 answers
16 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 ...
0 votes
1 answer
129 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 ...
  • 357
1 vote
1 answer
85 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 ...
1 vote
1 answer
42 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/...
0 votes
0 answers
26 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 ...
0 votes
0 answers
36 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 ...
  • 355
0 votes
0 answers
25 views

tramp not authenticating on windows

I'm experiencing a problem when trying to connect to a remote linux server using tramp and putty on windows. I'm using the following function to call and connect to the remote server (defun server-...
0 votes
0 answers
91 views

LSP over TRAMP: Method 'docker' is not known

When opening a remote file and trying to use LSP over TRAMP I see an error Method 'docker' is not known. The LSP log says the language server is in the path but M-x lsp only shows the error Method '...
1 vote
1 answer
94 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 ...
  • 311
0 votes
0 answers
8 views

Why is P4 VCS causing find-file sudo edit of local file hangs tramp with "Checking ‘vc-registered’ for..."

I'm trying to sudo edit a local file with my configured Emacs 27.1 on Ubuntu, by doing find-file /sudo::/etc/vsftpd.conf. It hangs stating: Checking ‘vc-registered’ for /sudo:root@ubuntu2:/etc/vsftpd....
  • 724
0 votes
0 answers
16 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 ...
  • 239
0 votes
1 answer
134 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 ...
0 votes
0 answers
130 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-...
0 votes
0 answers
135 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 ...
0 votes
1 answer
30 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 ...
0 votes
1 answer
54 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 (...
  • 101
0 votes
1 answer
15 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 ...
2 votes
1 answer
130 views

Failed to trash remote directories over tramp

With (setq delete-by-moving-to-trash t), deleting a non-empty directory in a remote dired buffer fails with message file-error: Couldn’t delete /ssh:server:/home/user/Downloads/some_directory. I tried ...
0 votes
0 answers
18 views

`shell` process got killed when C-c C-c

When tramp-own-remote-path is add to tramp-remote-path, a shell buffer started with /ssh:/some_server:/bin/bash got killed when doing C-c C-c on a running process or empty prompt. The issue does not ...
0 votes
1 answer
26 views

How to check `system-type` over `tramp`?

system-type work perfectly in local machine. How do I check system-type when connecting to a remote server over tramp?
0 votes
1 answer
51 views

TRAMP cannot log into `localhost`

ssh localhost succeeds: neptune% ssh localhost Linux neptune 5.16.0-0.bpo.4-amd64 #1 SMP PREEMPT Debian 5.16.12-1~bpo11+1 (2022-03-08) x86_64 The programs included with the Debian GNU/Linux system ...
0 votes
1 answer
109 views

TRAMP and `projectile-ag`, `projectile-ripgrep` cause kernel panic and complete crash of Mac OS

I am using Emacs and TRAMP on a Mac to access a remote Git repo on a Linux machine. TRAMP is using the SSH protocol. projectile-find-file and routine editing works great. Projectile finds the .git ...
1 vote
0 answers
151 views

pylsp times out over TRAMP

I'm (unfortunately and against my will) using Windows 10 running Emacs 28.1 attempting to connect to a remote Ubuntu machine via TRAMP (currently this happens to be WSL but there are other Linux ...
0 votes
1 answer
100 views

How can I change TRAMP sudo password timeout?

I'm asked far too often for my sudo password by TRAMP.
  • 21
0 votes
0 answers
27 views

Previous code that appears automatically

I have a very annoying issue running R with emacs+ess on the remote workstation. My local PC runs Fedora 35 (all up to date), the remote workstation run Debian 11 (alla up to date). I used "...
  • 133
0 votes
1 answer
40 views

Tramp problem during writing files through plink containing over 2900 characters using emacs on windows

I get a weird bug and I am struggling to fix it. The problem occur only when writing files over 2900 characters through ssh with tramp. The file is correctly sent in remote machine, but tramp-perl-...
3 votes
1 answer
274 views

Tramp mode - Copying files

when copying files in tramp mode via ssh with Dired I am not able to do anything else in Emacs. Emacs is just not usable till this process has finished. Is there any way to use Emacs while it copies ...
  • 131
1 vote
0 answers
74 views

Tramp into gcloud compute engine instance using custom `gssh` and `tunnel-through-iap`

I have a couple of GCP projects which has IAP enabled on them and have compute engine instances which only have private IPs. So the only way to ssh into them is to use gcloud compute ssh with tunnel-...
  • 111
0 votes
0 answers
44 views

Tramp open file results in "invalid base64 data"

Emacs fails to open some files with Tramp (ssh), I get the error "invalid base64 data", although not always visibly. I have seen this, but no solution. Example with tramp debug ((setq tramp-...
  • 479
0 votes
0 answers
33 views

Emacs crashed with Gigabytes of memory allocated

I have had a weird crash with Emacs 27.2 on macOS: I had it running for a day or two smoothly and used TRAMP for editing some remote files over the Internet and after a while, Emacs became ...
  • 1,155
0 votes
0 answers
67 views

Helm with Tramp does not show directory content

This is what I do: helm-find-files enter my remote: /ssh:pudu:, enter emacs asks for my remote password Issues: no file suggestions in the *helm find files* buffer (totally empty) ~ does not work ...
  • 479
0 votes
1 answer
26 views

`ido-find-file` always trigger `ido-reread-directory`

Tried following this answer, but did not work on Emacs27 (defadvice ido-find-file (before auto-refresh-ido nil activate) (setq ido-rescan t)) Also tried but did not work because when ido-reread-...
  • 229
0 votes
1 answer
70 views

Open shell from find-file interactively

Currently, I can use C-x C-f to find-file (or ido-find-file) then open a dired directory and launch M-x shell. Is it possible to interactively navigate a path be it a local ~/Documents or tramp shell ...
  • 229
0 votes
1 answer
147 views

Tramp ssh connection inside eshell with gpg key

In my dotfiles I have the following setup to make ssh connections using my gpg key: .bash_profile: export GPG_TTY=$(tty) export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) gpgconf --launch ...
  • 103
1 vote
0 answers
349 views

Using typescript-language-server through tramp can't find servers for typescript-mode

I am trying to work remotely on a typescript project, with lsp-mode and tramp, through SSH. I followed the documentation on lsp-mode web page to set up a remote client. Here is my config: (use-package ...
  • 347
2 votes
1 answer
584 views

Emacs find-file over SSH is too slow to connect

I am trying to connect to a remote server through SSH to edit some projects. I do C-x C-f and then /ssh:username:ip:. It displays a password prompt. I type my password and press RET. It takes very ...
  • 347
1 vote
2 answers
126 views

Establish plink ssh connection via tramp to AWS instance

on my freaking company windows machine I am trying to use tramp to connect to my aws instance. On pressing C-x C-f, on linux I usually did press slash twice to erase the path and the put in: ssh:.... ...
  • 543
3 votes
1 answer
501 views

How to activate a remote Python conda environment with Tramp / SSH?

I'm using Doom Emacs 27.2 on linux. I have (python +lsp +pyright +conda +cython) in my init file and (setq conda-anaconda-home "~/miniconda") in config.el. I can activate local conda env by ...
  • 31
2 votes
1 answer
88 views

gzip: stdin: unexpected end of file

Linux Mint 20.1 Emacs 27.1 I connect to remote Linux host by tramp mode. Success connect. Nice. But when in dired mode I try to open log file (press Enter) I get the next message: gzip: stdin: ...
  • 3,738
0 votes
0 answers
52 views

Why so slow open remote folder in Tramp mode?

Linux Mint 20.2 Emacs 27.1 If I want to work with remote folder in dired mode I use Tramp mode. Ok. It's work... but very slow. The same remote folders open very quick by Midnight Commander.
  • 3,738
1 vote
0 answers
264 views

Symbol's value as variable is void: tramp-remote-path

I'm trying to configure a remote path when using tramp. I have added (add-to-list 'tramp-remote-path "/root/.cargo/bin") to my init.el I get the following error: Symbol's value as variable ...

1
2 3 4 5
8