Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [tramp]

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

0
votes
1answer
34 views

xclip fails to set selection when using tramp

I use Emacs in the terminal (emacs -nw) and xclip.el for synchronising the kill ring with the X clipboard. Under normal circumstances this works fine, but when visiting buffers with tramp xclip is not ...
0
votes
1answer
19 views

Tramp Unable to Recognize Remote Prompt

I have been trying to get tramp working and I am having issues with recognizing the remote prompt. Unfortunately, I cannot change the remote prompt because it is dictated by my school. I have tried ...
0
votes
1answer
42 views

Cannot open remote file

I am trying to open a remote file in spacemacs in evil mode on windows using SPC f f. This pops up helm and entering /ssh:myuser@myhost/folder/file.txt produces Wrong type argument: stringp, nil In ...
1
vote
1answer
52 views

Tramp and X11 forwarding when changing user (su)

I can connect to a remote server with Tramp C-x C-f /ssh:group@remotehost: and get a plot output window (with ess R). But if I change user C-x C-f /ssh:group@remote|su:user@remote: there's no X11 ...
2
votes
1answer
68 views

emacs daemon and ssh agent forwarding

In order to use ssh agent forwarding with emacs in daemon mode, running on a remote server, I've come-up with the following. I have an alias for the client like so: alias emacsclient="update_agent;/...
0
votes
2answers
51 views

How to debug hanging tramp connections?

With recent versions of Emacs, tramp routinely hangs at the time of making the connection. The *Messages* buffer gives no information. Is there a way to get more information as to what's happening? ...
0
votes
1answer
50 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
48 views

Not a Tramp file name

windows 10 (64 bit), emacs 26.1 I try to connect by Tramp mode from Windows to remote Linux machine. I use this command: C-x C-f and then ip of remote machine (ip address): /xxx.xxx.xxx.xxx: ...
0
votes
1answer
40 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 ...
2
votes
1answer
50 views

How to setup tramp mode through a linux gateway and hardware authentication?

I don't have direct access to my remote machine at work. Normally I login with the following commands (local)$ ssh id@gateway Yubikey prompt (physically push a button on the yubikey) PW prompt: (...
1
vote
0answers
23 views

Find dirrectories paths from a list of names via tramp session

I have a remote host accessing via tramp there is a list of directori names I'd like to find on that host. What I do now - connect to remote server and while read -r name; do find / -type d -name "$...
0
votes
1answer
21 views

Why some extra tramp related packages does not show url schema prefix?

When I press [C-x C-f] , I got some TRAMP methods shown like ssh: , sshx:. But not get docker: when I installed package docker-tramp. Does docker-tramp.el provide this? If yes, then how to configure ...
1
vote
0answers
108 views

Tramp fails to open remote shell when connecting to android

I'm trying to connect to my Android device via SSH using TRAMP. I've setup my SSHDroid, configured ssh keys and my ~/.ssh/config, so I'm able to connect with just ssh android from terminal. But when ...
0
votes
0answers
18 views

Tramp having issue on file name by bazel

This is convoluted. I am calling company-jedi which calls company-begin. Looks like company-mode does a check with TRAMP first, I get this in messages: Company: An error occurred in auto-begin ...
1
vote
0answers
29 views

Folder navigation on remote windows machine can't see folders with spaces

I've been trying to navigate folder structures on a remote Windows machine with Cygwin installed, but I can't seem to navigate to folders which contain a space in them. Emacs claims that "File no ...
0
votes
1answer
38 views

How to get vanilla find-file in Spacemacs

Even when i M-x find-file I get the Helm stuff. I usally also want that, it's just with some Tramp stuff I think there are Problems. How to get the plain old find-files from vanilla emacs in ...
0
votes
0answers
58 views

Run local command on remote file with TRAMP?

Having a remote directory open in Emacs (... via TRAMP), I can run remote commands on remote files (using !). I can also view them locally (... even if they're image files) with builtin Emacs viewers (...
1
vote
1answer
63 views

Dynamic IP address for org babel ssh dir param

I use this in emacs to connect and execute commands remotely: #+BEGIN_SRC sh :dir /ssh:app_user@34.143.149.84:/tmp pwd #+END_SRC #+RESULTS: : /tmp Recently, people have gone "cloud scaling" so the ...
0
votes
2answers
20 views

Split window with new buffer and spawn a new shell in same (possibly remote) directory as old buffer

In tmux, I can press some key combination and split the current window into two windows in the same directory. I've tried the split-window-* function, but found it just duplicates the same buffer in ...
1
vote
1answer
54 views

Can't start gdb over ssh

I am able to open a remote C source file using tramp (via ssh). However, when I try to debug it using M-x gdb gdb -i=mi /ssh:localhost#8022:/usr/bin/httrack I get Current directory is /ssh:...
0
votes
0answers
63 views

preview-latex not working for remote files

When I run 'C-c C-p C-b' on local machine everything compiles, and I can see preview of my pics, tables and equations. Then I try to compile the same project on my remote machine using local emacs in ...
3
votes
2answers
114 views

Tramp connection fails with “timeout reached”

I've been using tramp to edit remote files for a few years now, but suddenly it stopped working yesterday. I haven't changed anything relevant that I can think of. For testing, I tried opening a file ...
0
votes
0answers
178 views

Why are my .dir-locals not being applied even though they are loaded

Still on a never ending quest to get per project settings working for python using tramp and .dir-locals. Hitting a strange problem when I open a buffer I am asked if i would like to run my .dir-...
0
votes
0answers
69 views

Emacs password cache not working as hoped

(1) I have (require 'password-cache) (setq password-cache-expiry nil) set in my .emacs file. (2) When I connect to "machine" via tramp with: dired /ssh:user@machine: I get logged via ssh and ...
0
votes
0answers
34 views

Tramp stalls when saving a remote file

After using Tramp for a little while, it stalls whenever I try to save a file. I have no problem connecting to remote files, but saving them now stalls and I can't enter C-g or any other commands. ...
1
vote
0answers
165 views

How can i resolve tramp-error: Not a Tramp file name: using a /docker address?

Trying to set up .dir-locals to use a custom python interpreter inside a container so i can use run-python and get the REPL inside the container. I have this setup which seems to partially work in ...
1
vote
1answer
124 views

How do you upgrade tramp?

Tramp is a built in and does not seem to be in melpa, where can I install it from and is it a good idea to update to a newer version ?
0
votes
1answer
87 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-...
0
votes
1answer
40 views

How to set FTP TRAMP/ANGE connection configuration

With SSH I can add connections to my SSH config file at /.ssh/config Once added to the config file emacs will auto-complete these connections when using tramp integrations like find-file /ssh: I ...
1
vote
1answer
20 views

Can't see changes in file on remote Unix machine “on fly”

Windows 10 (64 bit), Emacs 25.1 in my .emacs I have: (global-auto-revert-mode t) So when I open file (in dired mode) on my LOCAL machine it's success refresh opened file "on fly". Nice. Now I ...
0
votes
1answer
289 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
341 views

Tramp freezes Emacs with OpenSSH on Windows

I just installed Emacs on my Windows machine for remote file editing using Tramp. However, I noticed than whenever I try to connect to a remote server (C-x C-f /ssh:home:), Tramp just displays Opening ...
1
vote
1answer
59 views

Is this a bug? emacs freezes when doing “sudo service apache2 status” inside a org babel tramp remote code block

I think I've found a bug with emacs+org+babel. This block runs fine #+BEGIN_SRC sh :dir /ssh:ubuntu@54.175.231.31:~/ :exports both :results output sudo service --...
5
votes
1answer
79 views

TRAMP method for Fedora's mock?

Mock is a utility used by Fedora to build packages in chroots. For debugging, it would be nice to access files inside those chroots with all the amenities Emacs has to offer. Calling mock -r fedora-...
2
votes
2answers
154 views

TRAMP on Windows connects to Linux but not to OSX (macOS)

Using Emacs-25.2.1 on Windows XP (and on 7, too) I can connect to my Raspberry Pi (Rasppian OS) using TRAMP and the plink method and it works flawlessly. But when I try to connect to my Mac mini (OSX ...
0
votes
1answer
70 views

Tramp FTP cant connect. tramp-file-name-handler: Host name must not match method “ftp”

I am trying to connect ftp using tramp I am using C-x C-f /ftp:username@subdomain.hostname.com I get an error message in the mini buffer: tramp-file-name-handler: Host name must not match method "...
1
vote
1answer
97 views

Tramp connection through proxy

Our servers are behind a proxy that requires two factor authenticatio. I managed to get through the authentication process yet was wondering, is there a way of authenticating only once and not for ...
0
votes
0answers
63 views

How to get tramp to connect to remote machine with this prompt?

I'm having a hard time understanding how to get tramp to connect to my schools remote machine. When using ssh the prompt looks like this: $ ssh me@machine.edu * * * WARNING ...
0
votes
1answer
39 views

How to disable diff-hl when browsing remote files?

When using Tramp and while browsing remote files diff-hl hangs Emacs. How is it possible to disable this package only when accessing remote files?
0
votes
1answer
102 views

Magit pushing through tramp does not work

Hi guys I'm on a osx machine and I want to push commits from a remote machine through tramp to github. I open the directory in dired on the remote machine which works fine and type M-x magit status ...
0
votes
1answer
90 views

Set python interpreter on a per project bases

I know i can set an interpreter with the code below, is there a way i can set this per project so that when I open emacs with a specific project it selects the interpreter for that project. (setq ...
1
vote
2answers
151 views

Tramp: Cannot Save File

I am new to tramp and I am trying to edit a file stored in a remote server. I connect to the file through C-x C-f /ssh:username@host:path_to_file/myfile.m. And on my init.el I have the options: (setq ...
1
vote
0answers
228 views

Projectile not remembering remote projects

I'm using spacemacs and regularly use Tramp (via /sshx:) to open files, once I've opened a file in Tramp I can use projectile without any problems. However, projectile doesn't remember these projects ...
0
votes
0answers
12 views

Autorefresh local file work, but remote not

Windows 10, Emacs 25.1, Dired+ I want to autorerfresh local file. So I set: (global-auto-revert-mode t) And local autorefresh is work fine. But I also want to autorefresh remote file. My local ...
0
votes
0answers
30 views

Autorefresh remote file in Tramp mode not work

Windows 10, Emacs 25.1. I go to remote Unix machine using Tramp mode. OK. It's work find. I in dired mode success open file in remote machine. But the problem is that when I opent file (log) it not ...
3
votes
1answer
399 views

Remote shell path - env: No such file or directory

In Emacs, when I open the file /ssh:USER@HOST:/PATH, Tramp mode kicks in and everything is great. While editing the file, I want to open a remote shell as well using M-x shell, but its behaviour is ...
0
votes
0answers
171 views

A Tramp file is stuck in my buffer cache

I'm using Emacs 25.3.1 with Spacemacs 0.200.9. I have Ivy installed. At some point in the past, I opened a Tramp session to a local machine over SSH. Now, when I'm not on that network and I try to ...
2
votes
2answers
89 views

How to lookup buffer visiting file opened via TRAMP

Motivation / Background I use the ffap counterparts of common file- and directory-finding commands, i.e. find-file-at-point, dired-at-point et al. in place of find-file, dired et al., respectively. I ...
1
vote
1answer
130 views

tramp + async-shell-command ignores shell-file-name

If I locally call async-shell-command it takes the shell from shell-file-name (/bin/bash). However if I use su or ssh via tramp to invoke a shell command remotely it always runs as /bin/sh. The ...
0
votes
0answers
89 views

How to use dired to open a folder as root

I want to batch editing some files as root in dired, however, when I open dired with /sudo::/my/path/to/dir, dired window does not list anything. What is the correct way to do this ?