Edit / etc / ssh / ssh_config Add the following setting to resolve this problem:
# 断开时重试连接的次数
ServerAliveCountMax 5
# 每隔5秒自动发送一个空的请求以保持连接
ServerAliveInterval 5
Edit / etc / ssh / ssh_config Add the following setting to resolve this problem:
# 断开时重试连接的次数
ServerAliveCountMax 5
# 每隔5秒自动发送一个空的请求以保持连接
ServerAliveInterval 5