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

Append:

ServerAliveInterval 15
ServerAliveCountMax 3

Additionally, use the reconnect option:

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

Comments (RSS)

Leave a comment