We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [tramp]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
18 views

Random freezes with `error in process filter: Quit`

I'm getting random freezes with the error message: error in process filter: Quit. I'm using tramp-mode with emacs 26.1 on macOS. It seems to maybe be linked to typing symbol characters like %, $, etc. ...
2
votes
1answer
34 views

Are there TRAMP mode log files? If so, how to access them?

Having here some troubles with TRAMP mode and already set (customize-set-variable 'tramp-verbose 6 "Enable remote command traces") in .emacs file. But main problem is that Emacs is stuck in TRAMP ...
1
vote
2answers
28 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 /...
2
votes
1answer
46 views

TRAMP mode hangs while copy large file from remote to local via Ssh

Trying here to download (scp file from remote to local) that was considered large file, then Emacs tried to compact it, then got stuck. Even used scp command to do it because copying via ssh got ...
0
votes
0answers
33 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
21 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
0answers
13 views

Wrong file permissions after saving changes with tramp sftp

I have been editing files on a remote server with sftp via tramp. When I save the files it changes the original file permissions (644) to 600. I have been using tramp for a while and not run into this ...
0
votes
0answers
36 views

Emacs Consistently Crashes when Scrolling Remote Files using Tramp

Whenever I scroll using the trackpad in a remote file, Emacs consistently crashes. (Also, other things crash Emacs in remote files, but this is the most common one I've come across) I have tried ...
0
votes
0answers
26 views

How to disable eldoc when using TRAMP (editing files over SSH)

Eldoc really bogs down the editor when used over SSH with TRAMP. I want to disable it in those cases. What I've tried is this: (defun no-tramp-eldoc () (interactive) (when (string-prefix-p "...
1
vote
0answers
41 views

Disable ispell when using Tramp

In my Spacemacs, I enabled the spell-checking layer which enables ispell. I noticed that my Tramp connection is very slow, and after debugging, I found that one of the causes is ispell: 02:07:20....
0
votes
1answer
35 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 ...
0
votes
0answers
33 views

Getting MacOS Emacs + remote Ubuntu + rtags + company + TRAMP to work?

My development environment works as follows: Working locally on a MacOS laptop with Emacs without a local code repository (or any development tools e.g. clang) Code is remote on an Ubuntu development ...
0
votes
0answers
22 views

Helm expands ~. Is it possible to expand other “aliases” as well?

Apparently anaconda-mode provides eldoc support on remote files, but it kinda breaks TRAMP if the remote file name contains an ssh alias (TRAMP will keep reconnecting over and over). It is ...
0
votes
0answers
33 views

Emacs tramp on chroot directory

I have chroot directory. When I try to open /ssh:web@xxx.xxx.xxx.xxx:/, Emacs returns “Found remote shell prompt on”. From console I login to directory.
1
vote
0answers
132 views

Editing a file with emacs over ssh on remote machine

I am editing configuration files with emacs on remote hosts using ssh connection. It works perfectly. But I recently made RSA keys and now I can connect to these hosts with the keys without password, ...
2
votes
1answer
130 views

Chown with dired over Tramp, from Windows machine

I launch dired over Tramp (from Win machine to Linux server): C-x d /plink:user@server|su:root@server:/path-to-folder-controlled-by-root/ Then I type "O" to chown a folder, but I get chown not ...
0
votes
0answers
16 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 ...
2
votes
0answers
24 views

tramp seems to always use out-of-band methods for a simple copy or rename, despite both files being remote

I noticed a huge slowdown when renaming a remote directory via tramp in dired mode, especially pronounced when the remote host had a slow internet connection. I investigated and saw tramp was first ...
1
vote
0answers
49 views

Use Eshell with Tramp, from a Windows computer to a Linux server

I use a Windows computer to control servers through Tramp (with plink). Here's my setup: (setq explicit-shell-file-name "/bin/bash") (setq default-directory "/plink:user@server:~") Now when I run M-...
0
votes
1answer
19 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 ...
1
vote
0answers
114 views

Tramp hanging on writing or opening file

Tramp consistently hangs, for me, when opening or writing a remote file. None of the ‘why is Tramp hanging...?’ resources I've found seem to address my situation. What's odd is that this used to ...
1
vote
2answers
69 views

Multi-processing via TRAMP with asynchronous shell commands

I found the following code in TRAMP: (defun tramp-adb-handle-shell-command (command &optional output-buffer error-buffer) "Like `shell-command' for Tramp files." (let* ((asynchronous (...
1
vote
1answer
84 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
300 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
96 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
1answer
50 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 ...
0
votes
2answers
68 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
120 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
41 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
77 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
69 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
283 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
63 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
105 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
137 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
155 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://...
3
votes
1answer
98 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
24 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
63 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
71 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
144 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
71 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
221 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
33 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
75 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 ...
1
vote
1answer
92 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
118 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
153 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
252 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
583 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? ...