Quantcast
Channel: MogDB Life
Viewing all articles
Browse latest Browse all 353

Mac Terminal 终端防范 idle 避免自动中断的方法

$
0
0

作者:eygle 发布在 eygle.com

在MAC电脑上,通过 Terminal 终端 ssh 连接远程主机时,如果一段时间没有操作,经常会发生中断。

可以通过修改mac上的ssh配置解决此问题:

vi ~/.ssh/config
// 加入:
ServerAliveInterval 30

这个参数是每隔30秒,mac客户端会主动向服务器发出一次请求。
这样就使得服务器端认为客户端是一直在线状态,也就不会主动断开连接了。

SecCRT 有个 30 秒自动发送字符的做法,Mac 的这个参数设置方便了很多。记录备忘。

相关文章|Related Articles


Viewing all articles
Browse latest Browse all 353

Trending Articles