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
0answers
11 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: ...
0
votes
0answers
24 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.
0
votes
0answers
18 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
vote
1answer
19 views

Using shell-command-on-region with TRAMP

I like to use shell-command-on-region for pretty printing a selected region of code with prettier. After selecting a region, I type C-u M-| and then I use prettier --parser ruby as the shell command. ...
2
votes
1answer
53 views

Tramp ignores remote paths, no matter what

I run Emacs 27.1 in a Windows 10 environment, and I use tramp via plinkx for remote editing. I don't have diff installed locally, and I don't have the privileges to do it, so I'd like to avail of the ...
0
votes
1answer
19 views

Setup Emacs TRAMP to use psftp for ftp connection

I recently need to edit remote files a lot. Now I'm using FileZilla to edit files on SFTP server, but I want to use Emacs to connect to the server. I think it should work with PuTTY's psftp.exe, but I ...
0
votes
0answers
42 views

`void-variable: Symbol’s value as variable is void: v` when deleting remote directory in dired

This recently started happening. Whenever I try to recursively delete any remote directory from dired (i.e. D over the dired entry), I get this after Emacs asks me for confirmation: void-variable: ...
0
votes
0answers
24 views

Show progress bar for long operation?

Linux Mint 20.2 Emacs 27.2 When I do some long operation not show progress bar. Is it possible to show progress bar in this situation? Examples of long operations: Copy many files Copy big files ...
1
vote
0answers
24 views

org-babel not sourcing remote .bashrc when using tramp

When editing a remote file with tramp, I want org-babel source blocks to source the remote machine's .bashrc. I found this workaround that does what I want: #+BEGIN_SRC bash :preamble ". ~/....
3
votes
1answer
64 views

How can I set the ls program dired uses only for local directories

I have set the ls program dired uses via (setq insert-directory-program "gls")) (so that I can specify --group-directories-first in dired-listing-switches). Trouble is when I browse a ...
1
vote
0answers
38 views

How to speed up tramp with ivy

I use ivy for file and buffer completion. As soon as I have one (dired) buffer which gets its content via tramp from a (slow) remote server all buffer and file selection commands become very slow even ...
1
vote
0answers
19 views

Locally shell-process remote files?

I'm using https://github.com/schspa/dtb-mode to transparently decompile binary dtb files; dtb-mode does this by running dtc on the underlying file (which, AFAICT, doesn't accept input from stdin). ...
0
votes
1answer
33 views

jumping to a directory in speedbar

Is there a way to jump to a given directory in speedbar? For example, when I open up emacs and speedbar, it begins in ~/. Which is fine most of the time, but sometimes I'll want to jump to a remote ...
1
vote
0answers
31 views

Tramp can't connect with ssh: Wrong type argument: "number-or-marker-p undefined"

I'm trying to edit files and execute commands on my virtual GNU/Hurd machine. However, TRAMP asks for password, connects when correct password given, and finally says: ~ $ cd /ssh:akib@192.168.100....
0
votes
1answer
33 views

Load right version of Git while connecting to remote

I am currently working on a remote using Lmod for handling modules. I want to use Magit with the repositories on this remote, but the default system version of Git is 1.x. However, Git 2.18 is ...
0
votes
0answers
23 views

How to use TRAMP over tor?

I am not able to use TRAMP mode over tor. When I try to use something like M-x ssh://blabloblu.onion it just doesn't work. tramp-signal-hook-function: Tramp failed to connect. If this happens ...
1
vote
0answers
42 views

How to use Emacs+ESS to access GNU R within docker including x11 without openssh-server

I'm using Debian Stable (currently Buster) to do my programming in GNU R. As an IDE I'm using both Nvim-R (a vim/neovim-plugin) as well as Emacs+ESS but not Rstudio (although it's a great IDE for ...
2
votes
1answer
50 views

How to make TRAMP aware of VPNs?

For work I sometimes have to connect to our enterprise VPN. When inside of the VPN, I can reach host remote per SSH, so the following TRAMP incantation works: C-x C-f /ssh:remote:/path/filename RET ...
0
votes
1answer
48 views

How to forward localhost ports from remote server when using tramp?

How to forward localhost ports to the remote server when using tramp, like one can do with ssh as follows: ssh -L <local port>:localhost:<remote port> <user_id>@<server_ip_addr>...
1
vote
1answer
75 views

Tramp mode - very slow connect

CentOS 7, Emacs 27.1 Suppose I wan to to connect to the remote host (by ssh). Approach#1 Opent Linux terminal and run the next command ssh someLogin@10.222.11.111 Type password and after about 3 ...
0
votes
1answer
115 views

lsp-mode tramp auto-completions

Ive set up remote lsp-mode with tramp and pylsp server. While the server does start when I open a remote py file, many server features such as auto completions, code format, references dont work. Here ...
0
votes
1answer
34 views

Trying to edit/save file with root privilege fails with "Copying directly failed, see buffer '*tramp/sudo root @HOST*'

I have done this a ton of times in the past 10 months or so that I have been using Emacs (which I have quickly come to love, by the way) and never had a problem. No clue what I changed or how, but ...
0
votes
1answer
50 views

Running elpy-test on a file opened over ssh via tramp

I'm trying to run elpy's C-c C-t to do elpy-test on a python test_x.py file I have opened on a remote machine with TRAMP. Some parameters: There is a python virtual env in the (remote machine's) ...
0
votes
0answers
60 views

emacs tramp/CyberArk detailed walkthrough

Edit: Solved... I'm using emacs 26.2, tramp 2.5.0, on OSX High Sierra 10.13.6... The server login requires: A normal password A passcode from a phone call The user has to specify a reason for the ...
0
votes
0answers
19 views

Change company-backends for tramp buffers

How do I change the company backends for remote buffers? Tramp doesn't seem to provide any useful hooks ... Related: Using different theme on tramp buffers (and buffer-related themes in general)?
1
vote
1answer
32 views

Tramp with Dired produces unwanted //DIRED// line

Connected via Tramp to an old remote system, when I list a directory using Dired, I get: /plink:user@example.com:/tmp: total used in directory 549 available 114.7 MiB drwxrwxrwt 3 root ...
0
votes
1answer
74 views

How to avoid using auth-sources when editing with sudo?

When I invoke crux-sudo-edit, Emacs hangs forever with the following message: Decrypting /home/$USER/.authinfo.gpg...0% until I press C-g, then it asks: Passphrase for symmetric encryption for /home/$...
3
votes
3answers
83 views

Dired+ doesn’t work on old remote system

When connected to an old remote system with Tramp 2.4.3.27.1, the buffer shows no files. With tramp-verbose set to 6, I looked at the Tramp debug buffer, then found (anonymized): 13:27:21.657267 tramp-...
0
votes
1answer
37 views

How to disable confirmation for large files

When you recursively copy a large remote directory through Tramp, it will ask for confirmation for large files. Because of that, you can't leave the copy in the background, since the confirmation ...
0
votes
1answer
32 views

How to make image-dired work on remote files?

I've tried sshand scp for tramp's method (both work for tramp), yet image-dired thumbnail creation fails Thumb could not be created for /scp:raspi:/media/pi/91D4-7E58//IMG_1.JPG: exited abnormally ...
1
vote
1answer
28 views

How to run commands locally even when on tramp?

I have some commands that do "utility" stuff that have nothing to do with the current buffer. I need these to always run locally, and not remotely when visiting a tramp buffer. How can I do ...
0
votes
1answer
166 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
2answers
40 views

Org Babel execute bash via ssh on non-default port; `(wrong-type-argument number-or-marker-p nil)`

Problem In an org file, I have a source code block containing bash code that I want to run on a remote machine: * test :PROPERTIES: :header-args:bash: :dir /ssh:skid@127.0.0.1#2221: :END: #+...
1
vote
1answer
172 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
1answer
121 views

Tramp hangs indefinitely when using doas on Linux

Tramp works fine when I try to edit with sudo or ssh, but when I try to edit with doas it will hang (while also maxing out my cpu). Here is some tramp output: backtrace() tramp-signal-hook-...
0
votes
1answer
86 views

Problems with FTP connection via Tramp

I try to create FTP connection via Tramp, but the output I get on AngeFTP is: ftp> open android.local ftp: Can't connect to `192.168.0.21:21': Connection refused ftp: Can't connect to `android....
0
votes
0answers
23 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
45 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)
2
votes
1answer
135 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 ...
1
vote
1answer
175 views

Start emacs from the command line with remote ssh file open

How to start Emacs from the command line with and open file trough ssh? What I usually do is first open Emacs and do: C-X C-F /ssh:my_remote_server:/file.txt RET How can I directly open the file from ...
0
votes
0answers
35 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 ...
1
vote
1answer
125 views

magit on Windows over plink tramp

I'm scratching my head on this problem, but I cannot seem to use magit on a project served over plink or plinkx on Windows. What does work: The windows client can use magit on a project stored ...
0
votes
0answers
67 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@...
1
vote
1answer
200 views

What is causing Emacs remote shell to be slow on completion?

So basically I am doing the following: Opening a dired buffer with tramp on a remote. Opening a shell on the remote (M-x shell) Then if I try for example to type any command such as ls -la the ...
1
vote
2answers
66 views

How do I make Tramp stop mangling my PATH?

Tramp is very tenacious in overriding the PATH setting of a remote machine. How can I completely disable this, so that Tramp's PATH is identical to what I get when I manually log in with ssh on the ...
0
votes
1answer
112 views

command run in docker-tramp running on the host rather than remote

The setup: I have a docker container connected with a mounted volume containing an org file. The docker container has both texlive and emacs (configured exactly the way it is on my host) installed. I ...
1
vote
1answer
86 views

Log Tramp traces to a file

I am experiencing some Emacs Tramp connection problems and want to ask for help. However in my case Emacs hangs completely because of Tramp and there is no way I can access Tramp debug files. (it is ...
1
vote
0answers
61 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
29 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 ...
1
vote
1answer
198 views

gdb over ssh via tramp fails (but gdb-gud works?)

I am running into an issue where the gdb command fails over tramp. The remote host is a simple linux box I am accessing via ssh. Even when I run emacs without my init file it still happens. Emacs 27....

1
2 3 4 5
7