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
1answer
26 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
48 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 ...
0
votes
1answer
29 views

always prompt for default directory when opening interactive subshell

When I invoke C-u M-x shell while visiting a local file or scratch buffer, emacs does not prompt me to enter the default directory for the shell. But if I'm visiting a remote file or directory ...
0
votes
1answer
23 views

“Tramp: Opening adb shell connection…failed” + extra characters ^[7 and ^[8 present

It happens when I try to connect from emacs-26.3/tramp-2.3.5.26.3 onto my sgs5's lineageos14.1 adb shell. *tramp/adb d73896d9* buffer contents is the following: nv COLUMNS=1 ls -d -l /; echo ...
1
vote
2answers
301 views

Tramp session fails to recover from inactivity

When a Tramp session over SSH has been inactive for some time, it fails to wake up again and just hangs Emacs. How can I ensure that Tramp will either renew the connection, or time out before too long?...
1
vote
2answers
81 views

Cannot open remote file with TRAMP

I'm trying to connect and edit files on my openwrt box. But every time I tried Emacs shows me a blank buffer. C-x C-f /ssh:user:192.168.200.1:/etc/config/network RET the filesystem on openwrt cat /...
0
votes
0answers
13 views

Emacs hangs/freezes if vpn connection is lost

Every so often when Emacs is open and I edit some file via tramp and an established vpn connection and this connection is terminated and then reestablished, I cannot get Emacs to continue working. All ...
0
votes
1answer
900 views

set up custom port for default ssh connection in tramp

I am wondering what is the best way to set up a default port that is not the standard 22 port. I regularly log in with tramp to remote systems and would like to avoid having to put in #1234 every time ...
0
votes
0answers
20 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
1answer
54 views

Async Rsync Dired error on tramp file not found

I am trying to copy files from one directory on a remote computer to another directory on the same remote computer. Using Dired I can open up the two directories, mark the files I want to copy and ...
1
vote
1answer
19 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....
0
votes
0answers
21 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 ...
0
votes
1answer
48 views

clang-format-buffer with tramp doesn't actually format buffer

I'm using tramp to edit files on a remote machine, and when I run clang-format-buffer, it doesn't actually format the buffer. I get a message (clang-format: success) in the minibuffer, but the ...
1
vote
1answer
16 views

Tell ESS to use a different R program when on a Tramp remote session

I'm trying to configure ESS to use a different R program path when I'm on a remote session. Now, every time I ssh into the hpc cluster I use, I set the variable inferior-ess-R-program to /weird/path/...
1
vote
1answer
34 views

Which `ls` program is used when running dired over tramp?

How does dired determine which ls program to use when running over tramp? I couldn't find it anywhere in the document. If it is insert-directory-program, what would it do if the path doesn't exist on ...
1
vote
1answer
36 views

does tramp mode look at .dir-locals

I'm using emacs over tramp to edit a project inside a vm on my local machine. It has something like this: ssh:vm:~/projects/project/.dir-locals.el ssh:vm:~/projects/project/src/tests/file-i'm-editing....
1
vote
0answers
30 views

SSH connects, TRAMP doesn't

this is a lot like the issue described here already. It seems like the fancy prompt issue, however, I've tried to use sshx which I was told would solve this issue. I an wondering if anyone else have ...
0
votes
0answers
26 views

ido-mode breaks docker-tramp completion in minibuffer, and opens wrong files

Somehow the following minimal emacs config breaks docker-tramp. Completion in the mini-buffer does not work for /docker:, nor the container ids/names like /docker:43893ad331df, and once you type out ...
1
vote
1answer
96 views

dired-do-copy in tramp does not go to local when `\ C-j` is pressed. File path stays in the same directory

I am using dired-do-copy to copy a file from remote using tramp to local. When Copy file to path is promted. I used / C-j to go to local path but the path stays in the same directory , does not go to ...
3
votes
1answer
574 views

How to connect to Windows 10 OpenSSH over tramp?

I've installed OpenSSH on a Windows 10 machine, and can connect to it from the Linux command line with ssh or scp, giving the cmd.exe "shell". But tramp hangs on Waiting for prompts from remote shell: ...
0
votes
1answer
25 views

tramp mode on Ubuntu hangs while attempting ssh to 0.0.0.1

With emacs 25.2.2 on Ubuntu 18.04, if I try opening a file over ssh using a path such as /ssh:somehost.example.com:/tmp/testfile, it launches a sub-process that does: /usr/bin/ssh -o ControlPath=%C 0....
2
votes
1answer
87 views

messages buffer is spammed with tramp

I am connecting regularly to servers via tramp. Sometimes everything works fine but often times my messages buffer gets spammed full of Tramp: Waiting for prompts from remote shell...done Tramp: ...
0
votes
1answer
40 views

ggtags does not play well with tramp — emacs freezes multiple times

I've recently started to use tramp to edit a codebase that's two ssh hops away from me I was initially very happy with the experience, given how transparent everything was. I use magit and ggtags and, ...
0
votes
2answers
52 views

Unable to find files with ssh and environment variables

I have installed exec-path-from-shell as well as included the following in my init.el (when (memq window-system '(mac ns x)) (exec-path-from-shell-initialize)) within my ~/.bash_profile I have ...
0
votes
1answer
121 views

tramp-mode popping up while editing c/c++ files

recently, some strange behaviour popped up when editing c/c++ files in emacs: Whenever I want to write a comment, the first / I enter will open a buffer of type *tramp/spc C* with error message ssh:...
0
votes
0answers
47 views

terminal mode (with -nw) vs gui mode

Now I read lots of good stuff about spacemacs and want to try it out. I like the way iterm2 separates hosts/projects cleanly. Can I use iterm2 + spacemacs (maybe in terminal mode?) Or do I lose most ...
2
votes
1answer
450 views

edit a file on remote server using an existing session(by clone it)

I am able to clone a session after configure the configure file under .ssh cat .ssh/config host * ControlMaster auto ControlPath ~/.ssh/master-%r@%h:%p ServerAliveInterval 60 After I connect to the ...
1
vote
1answer
190 views

Python-Repl issues with TRAMP Mode [windows->Linux]

I have an issue when using python-mode remotely through tramp. I'm trying to use the repl and pass a test function using C-c C-c, however this seems to create a local file at my own computer or ...
0
votes
1answer
39 views

Using `dired-do-compress-to` with `tramp`

Within a eamcs -q session and in a tramp dired buffer and call dired-do-compress-to on a file, I got this eror zip I/O error: No such file or directory zip error: Could not create output file (/ssh:...
1
vote
1answer
91 views

How to set a default password for wildcard host in tramp?

I have a list of hosts 192...* with a default user and password, I've tried to set wild-card in .authinfo.gpg but it still requests password when I try to login. There are no problems when it set ...
1
vote
1answer
417 views

Using dired via tramp on a remote machine

Maybe I am missing something rather simple but I completely fail to use dired on a remote machine. I can connect via ssh directly without emacs and I can edited a file using Tramp on the remote ...
1
vote
1answer
43 views

Why can't TRAMP assume current host for `sudo::`?

Are there any technical reasons or use cases for why sudo:: in TRAMP cannot use the rightmost host to the left of it, instead of localhost? When I do /ssh:myname@my-remote-hostname.example.com|sudo::/...
5
votes
1answer
600 views

Problem of starting a remote ipython console

I want to connect to remote ipython server, and follow the doc of the ipython, I start a ipython server in my server by ipython3 kernel -f ~/.ipython/kernel.json --pprint and I can start a ipython ...
0
votes
1answer
148 views

Tramp mode: How check only one per day?

Windows 10 (64 bit), Emacs 26.1 I open trace.log file from remote Linux machine by Tramp mode. Nice. I set custom variables: '(password-cache-expiry nil) '(auto-revert-remote-files t) I set ...
0
votes
0answers
92 views

Flycheck Trouble with Tramp and Python: “no module named /ssh:…/home/ubuntu/test.py”

Hi and thank You for helping! Overview I run a Linux Container (Guest) on my Machine (Host). On this guest I installed python3. Too, there I have a file "test.py". I edit this file via Emacs ...
2
votes
3answers
4k views

tramp and sudo: how to edit files under another account

On local machine, I am using the account as test1, and I could use the same account to login remote server. After login as test1 on remote server, I could run sudo su - oracle to change as oracle user,...
7
votes
2answers
1k views

How to execute sudo command in org-babel in relative path under current working directory

I want to execute sudo command in org-babel like this: #+begin_src shell :dir "/sudo::" :cache no make sudo make install #+end_src It works fine. It use TRAMP /sudo: method. But I need to execute ...
1
vote
0answers
39 views

Tramp can't connect - cannot find ssh

I am trying to use Tramp, but it seems unable to execute the ssh command. Here is the error from *Messages*: Tramp: Opening connection for AWS2 using ssh... Word wrapping enabled Tramp: Sending ...
1
vote
1answer
111 views

Tramp x11 on Mac os (local) , centos (remote)

I understand that I should be able to use X11 to show graphs from a remote R when I use a local emacs to connect to the remote machine with tramp. I have tried a few different things but can not get ...
5
votes
5answers
6k views

Tramp: Waiting for prompts from remote shell

I added two new lines to my .bashrc so that Bash can find my Go programs: GOROOT=/Users/jay/work PATH=$PATH:$GOROOT/bin But as a result, when I launch Emacs, Emacs hangs for several minutes and I ...
0
votes
0answers
64 views

Why is `git` running incredibly slow with `tramp` and `ssh` and `eshell`

Commands like ls, cd, etc. run perfectly fine using tramp, but as soon as I run a command such as git status, the speed is unbearably slow, and I always receive these messages in the *messages* buffer:...
2
votes
1answer
51 views

Tramp `find-dired`: wrong type argument error

If i use find-dired in a remote directory (from Tramp) then I get a wrong type argument: processp, nil error. It works on a local dir. All I pass to find is '-iname "blah"'. /sftp:andreaz@10.0.0.99:...
2
votes
1answer
37 views

Dired doesn't open non-text files with external applications in a Tramp directory listing

In Dired I'm in a Tramp directory opened with /sftp:... (so using the gvfs backend). If I use & to open a non-text file with a local external application (ex. evince for PDF) it doesn't do ...
0
votes
0answers
31 views

Tramp su seems to not work

I would like to upgrade my current workflow so I can use Emacs to edit a file on a remote machine. Here is what I have to do now: ssh remote # password1 required sudo su -l otheruser # password2 ...
1
vote
1answer
109 views

Separate auth-sources for Tramp and Gnus, or disable auth-sources for Tramp?

I have passwords stored in .authinfo.gpg file which I only need for Gnus. I never store passwords for machines or localhost in this .authinfo.gpg file (or in any other file). The problem is when I ...
0
votes
1answer
35 views

Tramp is operating on host filesystem instead of container filesystem

I'm using a slightly modified version of the usual docker tramp integration (below) which works fine to complete up to /docker:container_name: but where it goes wrong is it opens files on the host ...
3
votes
2answers
67 views

Using tramp and ESS-mode, how can I get the R interpreter to execute locally?

I use tramp to edit R files on a remote server. When I evaluate R code within ESS-mode, it starts an R interpreter on the remote machine. However, at the moment ssh -X to the server does not work, so ...
1
vote
1answer
57 views

Function `cd` not working correctly in conjunction with `tramp` and `compile`

For context I am looking at a remote file; for example: /ssh:desktop:/home/user/project/src/file.cpp. I then issue the interactive command compile like so: cd /ssh:desktop:/home/user/project/Release &...
2
votes
1answer
41 views

RCS Version Control on Tramp Mode

Began using RCS Version Control within Emacs with no problem while locally, but having dificulty on Tramp mode, once it says: Debugger entered--Lisp error: (error "This file is already registered") ...
10
votes
2answers
2k views

Magit doesn't recognise git repo through ssh connection

I'm using ssh to connect to a remote server. On the server there is a git repo called MRFLSSVM. However, when I execute magit-status on: /ssh:qmServer:/home/Chang/qmCodeLab/MRFLSSVM/ Magit asks me ...

1
2 3 4 5
7