by julienchastang · 7y ago · 0 comments
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.
Host *
ControlMaster auto
ControlPath /tmp/ssh-%r@%h:%p
This helped me quite a lot with tramp
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?