Questions tagged [tramp]

TRAMP is ‘Transparent Remote (file) Access, Multiple Protocol’ for editing remote files from Emacs.

Filter by
Sorted by
Tagged with
5
votes
1answer
554 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 ...
3
votes
1answer
485 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
139 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
35 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 ...
0
votes
1answer
27 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
2answers
31 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 ...
2
votes
3answers
3k 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,...
1
vote
2answers
251 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?...
6
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
2answers
62 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
1answer
729 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 ...
1
vote
0answers
35 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
85 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 ...
0
votes
1answer
44 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 ...
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
1answer
21 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 ...
0
votes
0answers
36 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
45 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
33 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
24 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
54 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
0answers
19 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 ...
0
votes
1answer
25 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
57 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
35 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
38 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 ...
2
votes
2answers
51 views

How to Visualize Transfer Rate In TRAMP Mode File Transfer

Any idea on how could be enabled a progress bar and/or speed rate metter on TRAMP mode file transfer? Trying to manage TRAMP transfer mode via scp instead of ssh to seek avoidance base64 conversion, ...
1
vote
1answer
87 views

Accessing google drive with tramp in emacs 25

I'm trying to access my google drive from within emacs. According to this, that's possible with emacs 26. Based on the tramp 2.4.3 manual I think that's because emacs 26 comes with version 2.4.3 of ...
1
vote
1answer
79 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 ...
1
vote
0answers
27 views

How to disable tramp autosave and backups, but keep other backups/autosave?

I'd like to disable autosaves and backups when using tramp, because I neither want to save stuff from remote machines nor stuff belonging to root in my backup/autosave directory. How to do that? I ...
0
votes
1answer
29 views

How to make Tramp execute only if address is reachable?

So I have a couple of VM I'm using (mainly for experiment) I use Tramp a lot on a particular file in the VM, so I started to use this: (find-file "/ssh:vm@192.168.122.141:/home/vm/test.org" t) I put ...
0
votes
1answer
32 views

Use tramp to play remote videos on the local

I use tramp to access my phone through termux and locates the Movies directory /ssh:termux:/storage/emulated/0/Movies: total 162M Superbook - In The Beginning - Season 1 Episode 1 - Full ...
2
votes
1answer
81 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
35 views

Default shell path with Tramp from MacOS to Linux

I have a local environment which is MacOS Catalina and a remote environment which is standard Linux. I use tramp to connect to the remote linux machine to work on it. Unfortunately, Catalina now ...
0
votes
1answer
114 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:...
2
votes
1answer
434 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
169 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
0answers
27 views

Opening a Remote Shell Renames Buffer Open to \*shell\*

here is a simple elisp program for opening a shell in a named buffer: (defun shell-make (dir buffer-name) (let* ((default-directory dir) (buffer (get-buffer-create buffer-name))) (set-...
0
votes
1answer
35 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:...
0
votes
1answer
103 views

Org Mobile staging area with a WebDAV: Unable to set 'org-mobile-directory' with TRAMP

I have a working Owncloud server, and I would like to use Org Mobile to sync my Org files with my phone. Following "Setting up the staging area" in the info doc for Org Mobile, I have customized the ...
0
votes
1answer
25 views

tramp: $INSIDE_EMACS isn't defined while .bashrc is processed

It seems INSIDE_EMACS can be used to determine if tramp is used. I know I could use test "$TERM" = "dumb" but if [[ -z $INSIDE_EMACS ]]; then is provided by the home-manager tool. If I set tramp-...
1
vote
1answer
83 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 ...
4
votes
1answer
631 views

Tramp login with 2-factor authentication

To ssh, the server I am connecting to needs a password followed by an RSA-like key. It goes: Password: Verification code: I've read Tramp with 2-factor authentication, but it does not solve the ...
2
votes
1answer
322 views

running latex on remote host with tramp

I'm trying to run latex on remote host from the local host with tramp. But it seems that it cannot find the file. To be more specific: Update start emacs on localhost: /ssh:user@remotehost:/tmp/...
0
votes
1answer
240 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 ...
0
votes
1answer
93 views

Magit Tramp not showing diff window

When using magit on a local file, I stage my changes and I then press c and c again to commit. I get a new window showing the diff and a window for the commit message. I write my commit message press ...
1
vote
1answer
173 views

tramp multi hops and known_hosts

I'm using tramp to access files in remote via Bastion server using following tramp syntax: /ssh:root@BASTION-HOST#BASTION-PORT|root@REAL-HOST#REAL-PORT: The problem is, whenever I access REAL-...
7
votes
2answers
3k views

How to open a file with tramp mode when Helm is active?

I recently started using Helm with the configuration below (require 'helm-config) (helm-mode 1) (define-key global-map [remap occur] 'helm-occur) (define-key global-map [remap list-buffers] 'helm-...
3
votes
1answer
190 views

How can emacs org-mode execute shell code remotely as sudo?

My self-documenting maintainance scripts, where I document how systems have been setup, I need to execute stuff as sudo/root and want the results automatically added to the document. But for safety ...

1
2 3 4 5 6