Actually what worked for me was to uncomment the following to /etc/ssh/sshd_config:
(my OS is Ubuntu server 17.10)
ClientAliveInterval 300
ClientAliveCountMax 2
Thanks to https://patrickmn.com/aside/how-to-keep-alive-ssh-sessions/
David Fournier

分类: web

标签:   macos