Re:Absolute Beginner's Guide to Emacs (2012)
by loskutak on Tuesday December 04, 2018 @03:04PM
(#18603145)
you can use ssh controlmaster (adding variation of the following into your .ssh/config):
Host *
ControlMaster auto
ControlPath /tmp/ssh-%r@%h:%p
This helped me quite a lot with tramp
Re:Absolute Beginner's Guide to Emacs (2012)
by anonacct37 on Tuesday December 04, 2018 @02:45PM
(#18602992)
The enable ssh mastercontrol and persistent connections.
Re:Absolute Beginner's Guide to Emacs (2012)
by julienchastang on Tuesday December 04, 2018 @03:05PM
(#18603149)
@anonacct37 I've always had
ControlMaster auto
ControlPath ~/.ssh/cm_socket/%r@%h:%p
ServerAliveInterval 60
Is there something beyond that I should be doing? Does tramp need to be configured in some special way to take advantage of the persistent connection?
Question: I often find tramp to be significantly laggy and much slower when compared to simply sshing into the remote host. It is almost as if tramp is opening up a new ssh connection for every command. What do people here do about tramp lagginess? I've researched this problem but I have not found a good solution.