Let Mac terminal remains (SSH) connection with a remote state

Edit / etc / ssh / ssh_config Add the following setting to resolve this problem:

# 断开时重试连接的次数
ServerAliveCountMax 5

# 每隔5秒自动发送一个空的请求以保持连接
ServerAliveInterval 5

Guess you like

Origin www.cnblogs.com/yuwensong/p/11355267.html