SSH Timeout Keep Alive Option; Reconnect; ssh times out

To keep your ssh session from timing out, do the following:

Edit ssh_config:

$ vim /etc/ssh/ssh_config


ServerAliveInterval 15
ServerAliveCountMax 3

Additionally, use the reconnect option:

$ sshfs ~/mnt/mysite -o reconnect
Did this help you? Please let me know with a comment. Thank you
Posted .

Comments (RSS)

Leave a comment