Stack Exchange Network

Stack Exchange network consists of 175 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.

1
vote
1answer
27 views

tramp-default-method has no effect

I have a config file to setup defaults for tramp. For the purposes of this example foo and bar are hosts defined in /etc/hosts. (require 'tramp) (setq tramp-default-method "ssh") (add-to-list 'tramp-...
0
votes
2answers
68 views

Tramp hangs in “Waiting for prompts from remote shell”

new emacs user here. I'm trying to get tramp to work but can't figure out what's wrong. I do: M-x councel-tramp select /ssh:myserver But I just get "Waiting for prompts from remote shell" and it ...
0
votes
1answer
31 views

How connect to remote machine by private key on Tramp mode?

From my machine Windows 10, I connect to remote Linux machine by private like this (in console) ssh -i d:\Remote\key\privatekey myLogin@some_remote_host success connect: Welcome to Ubuntu 16.04.4 ...
0
votes
0answers
24 views

Magit Tramp not showing dif 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 ...
0
votes
2answers
42 views

How to create a short name for tramp multihop path?

I connect to various locations, for example: /ssh:hostname|sudo:hostname:/ /ssh:hostname|sudo:hostname|docker:container:/ and want to have some kind of short aliases for these long paths. Something ...
0
votes
0answers
97 views

How to get Emacs use the Ubuntu login password for tramp

Ubuntu 16.04 Emacs 26.1 Emacs needs to open the file with root privileges. Here is my code: (secrets-delete-item "session" "Login") (secrets-create-item "session" "Login" "myParol" :method "sudo" ...
1
vote
0answers
28 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
0answers
42 views

tramp hanging on remote fish shell despite tramp-remote-shell being /bin/sh

I can't connect via Tramp to a remote machine since switching to using fish as my default shell. However I have the tramp-remote-shell set for "/bin/sh" but this seems to be only used for interactive ...
1
vote
1answer
31 views

How do I use tramp to launch a remote PowerShell?

I'm trying to launch a PowerShell on a remote Windows system using tramp. So far all I've been able to do is start a PowerShell inside Emacs on the local (Windows) machine. What is the connection ...
0
votes
1answer
81 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
1answer
47 views

Tramp: Is there a way to use something like ssh-directory-tracking-mode but via ssh instead of ftp?

The boxes I'm working with are locked down and only have the SSH port (22) open, so I can't use directory tracking via FTP. But directory tracking is really handy. There has to be a way. Does anyone ...
0
votes
1answer
65 views

Trouble connecting GNU emacs to work machine through SSH & TRAMP

I am a new emacs user. Previously, for work, I would ssh into my work machine by activating my VPN and then running ssh work (work is an ssh nickname defined in .ssh/config) in my terminal. This would ...
0
votes
1answer
69 views

Tramp with ssh not asking for password - too many authentication failures

I would like to use tramp to login to a remote server via SSH. It used to work effortlessly, but somehow it does not even ask me for a password any longer and tries wildly to login with I guess keys ...
1
vote
1answer
74 views

tramp gcloud compute ssh not working

I wanted to be able to ssh into my google cloud instances with spacemacs. I found: https://github.com/dustinfreeman/dustinfreeman.emacs.d/blob/master/init.el#L50 which is based off of: https://...
2
votes
1answer
69 views

How can I diagnose which `git` magit is running?

I'm trying to use Magit with TRAMP. The remote host has multiple git versions, necessitating (add-to-list 'tramp-remote-path "/usr/sup/bin") in my .emacs. However, when I run magit-status in a ...
3
votes
1answer
21 views

How to get TRAMP to respect group sticky bit?

In using TRAMP to create a new file in a remote (Unix) directory, I discovered that TRAMP is not respecting the group sticky bit in that directory. As is standard on a Unix system, the group ...
0
votes
1answer
42 views

Tramp keep losing remote file permissions

I use: Emacs 26.1 on Windows 10 with tramp with plink/pscp to edit perl scripts on a remote Linux server The scripts are executable (permissions 755). When I load and then save them, if short time ...
1
vote
1answer
46 views

How can I set tramp-histfile-override using tramp-connection-properties?

I'm trying to set a different tramp history file override based on connection-specific rules. My attempts have been along the line of: (add-to-list 'tramp-connection-properties (list (...
0
votes
1answer
47 views

How to access (remote) MS Windows shared directory or files in Emacs25 running on Ubuntu 18.04

My question has already been asked here. However, the solution provided there didn't work for me. Through Ubuntu "Files" I am able to access the samba share with smb://DOMAIN;USER@IP_ADDRESS/...
2
votes
1answer
48 views

Emacs on cygwin: How to open file/directory on windows share

With Emacs running on Windows (without cygwin) I am able to open a remote (windows share) directory with C-x C-f //IPADDRESS/d$ RET command. With Emacs on cygwin, I tried /smb:IPADDRESS:/d$$ RET. ...
2
votes
0answers
95 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
31 views

Tramp to office pc timesout, but cli ssh ok

From the commandline, this works: ssh office However, C-x C-f /ssh:office: simply freezes and eventually times out. That C-x C-f syntax works fine for all the servers our sysadmin has configured, ...
0
votes
1answer
57 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
44 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
70 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
101 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
156 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
212 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
90 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
138 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: ...
1
vote
1answer
56 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
101 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
25 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
33 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
165 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
20 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
33 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
47 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
107 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
140 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
39 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
119 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:...
3
votes
2answers
228 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 ...
1
vote
0answers
270 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
121 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 ...
1
vote
0answers
222 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 ...
2
votes
1answer
169 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
104 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
72 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
23 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 ...