Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Emacs stop responding on ssh after long wait

Tags:

emacs

ssh

I have noticed this recently and I don't know if this an issue with arch Linux or Emacs.

If I find a file on a remote machine and then I leave it open and do whatever, when I return to that file, Emacs doesn't respond. The only solution I have found is killing Emacs and reopen it.

Is there a more human way to do this?

like image 441
Yotam Avatar asked Nov 04 '22 02:11

Yotam


1 Answers

You can configure your ssh connection to keep alive when idle using the ServerAliveInterval configuration property. You would put something like this in your ~/.ssh/config:

      Host *
           ServerAliveInterval 5
like image 200
jtahlborn Avatar answered Nov 09 '22 06:11

jtahlborn