Questions tagged [tramp]

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

TRAMP is now part of the main Emacs core.

TRAMP enables Emacs edit remote files locally. TRAMP handles many common access protocols, authentication methods, including editing as or as a different user on remote files. TRAMP transparently handles and features on remote file systems.

TRAMP supports many of the standard connection methods, ranging from telnet or rhs to ssh and scp. On Windows operating systems, TRAMP uses the PuTTY package to make remote connections using plink.

415 questions
15
votes
2 answers

TRAMP over mosh

Mosh is an alternative to ssh that is generally more resilient. In particular, it can deal with: Extreme packet loss Changing client IPs Temporary connection loss There are few downsides to using it, other than a lack of X11 forwarding, which…
PythonNut
  • 10,363
  • 2
  • 30
  • 76
8
votes
2 answers

Working with tramp mode on slow connection, emacs does network trip when I start typing

After some pause (a few seconds) of idle I start typing and emacs does some network activities and because of my slow connection this looks like everything is slow and hanging all the time. I disabled all extra modes but this still happens, any idea…
Dfr
  • 131
  • 1
  • 5
7
votes
2 answers

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? I have seen this hanging behavior in two forms. On…
kjo
  • 3,247
  • 17
  • 48
6
votes
1 answer

Tramp: killing all buffers

Whenever I use ssh over Tramp to get to my local server (either with dired or pointing directly to a file), another buffer is also created: # When I finished my editing and close the buffer I was…
Boccaperta-IT
  • 1,556
  • 11
  • 24
6
votes
1 answer

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. but that could just be a coincidence.
6
votes
1 answer

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: Tramp: Opening connection for win using…
unhammer
  • 1,159
  • 8
  • 22
6
votes
3 answers

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, and then I could all files under account of…
Daniel Wu
  • 1,751
  • 2
  • 17
  • 26
5
votes
2 answers

How to store Tramp passwords permanently

The cache expiry (setq password-cache-expiry nil) works only for the livetime of the emacs client. But I found in the Tramp user manual the possibility to store passwords permanently 5.12.1 Using an authentication file The package…
Beginner
  • 2,711
  • 3
  • 18
  • 25
5
votes
1 answer

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 (just "Enter"), resulting in the file being…
Latanius
  • 163
  • 5
5
votes
0 answers

Tramp keeps opening the connection

Once I connect to a remote computer using tramp. It connects but tramp keeps trying to open the connection. This is the output that is printed again and again. Tramp: Waiting for prompts from remote shell...done Tramp: Found remote shell prompt…
DJJ
  • 762
  • 5
  • 19
5
votes
1 answer

Executing remote commands with TRAMP with a single SSH connection

I'm able to use TRAMP fine for reading/writing files on a remote server. I only have to login to the server the first time I open a file, and from then on I can open files without being prompted to login again. However, when I run commands through…
gsgx
  • 208
  • 1
  • 8
5
votes
2 answers

Tell Tramp not to try again if login fails

We have this policy that the account gets locked if a user tries to login with the wrong password for three times. Now if I mistype my password when connecting via tramp, it will try to login several times, locking my account immediately. I could…
Beginner
  • 2,711
  • 3
  • 18
  • 25
4
votes
2 answers

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 ?
Oly
  • 593
  • 1
  • 5
  • 15
4
votes
1 answer

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-26-i386 --shell yields a shell inside the…
Tim Landscheidt
  • 467
  • 3
  • 8
4
votes
2 answers

Closing emacs after TRAMP session is aborted

Sometimes i work on remote machine (or several) via TRAMP. However, sometimes sessions end in such a way they cannot be reopened later. In such situation, closing emacs results in unacceptable delays as futile failing attempts to reconnect to remote…
Srv19
  • 489
  • 4
  • 15
1
2 3 4 5