Questions tagged [tramp]
TRAMP is ‘Transparent Remote (file) Access, Multiple Protocol’ for editing remote files from Emacs.
362
questions
0
votes
1
answer
32
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
35
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
36
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
2
answers
37
views
How can I change TRAMP sudo password timeout?
I'm asked far too often for my sudo password by TRAMP.
0
votes
0
answers
25
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 "...
0
votes
1
answer
32
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
121
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 ...
1
vote
0
answers
22
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-...
0
votes
0
answers
20
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-...
0
votes
0
answers
24
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 ...
0
votes
0
answers
27
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
...
0
votes
1
answer
16
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-...
0
votes
0
answers
13
views
Quick pattern expansion when using Tramp with Helm?
I find the "quick pattern" expansion in helm-find-files really helpful, e.g., the ability to just put a ~/ at the end of the pattern to jump to home or ending with / with to jump to the root....
0
votes
1
answer
24
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 ...
0
votes
1
answer
75
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 ...
1
vote
0
answers
158
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 ...
1
vote
1
answer
296
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 ...
1
vote
2
answers
55
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:....
...
2
votes
1
answer
168
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 ...
1
vote
0
answers
49
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
0
answers
31
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.
1
vote
0
answers
94
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
1
answer
42
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
1
answer
90
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
1
answer
50
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
0
answers
62
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
0
answers
38
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
...
2
votes
0
answers
63
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
1
answer
106
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
0
answers
73
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
0
answers
21
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
1
answer
36
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
0
answers
63
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
1
answer
72
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
0
answers
30
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
0
answers
108
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
1
answer
84
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
1
answer
104
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
1
answer
149
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
1
answer
215
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
1
answer
53
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
1
answer
99
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
0
answers
105
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 ...
1
vote
1
answer
34
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
1
answer
167
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
3
answers
93
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
1
answer
60
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 ...
1
vote
1
answer
59
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
1
answer
44
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 ...
1
vote
1
answer
280
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 ...