刚接触iTerm2,用起来感觉还不错,就是不知道如何保持连接,让ssh不断线。
|
kikyousDec 22, 2014 via Android
1
这不是iterm的事
|
|
EPr2hh6LADQWqRVHDec 22, 2014
2
是ISP切断的,无解
|
|
shibo501cDec 22, 2014
3
断网了就不行了,如果是关闭tab的话,重新打开快速连接的话,可以设置ssh/config
cat ~/.ssh/config Host * ControlMaster auto ControlPath ~/.ssh/%h-%p-%r ControlPersist yes |
|
pineparaDec 22, 2014
4
mosh
|
|
5
谢谢几位解答,我意思不是指isp切断的问题,是ssh空闲断开的问题,securecrt有个send protocol no-op的功能,我是想实现同样的功能,还有就是,如果真的断线让它自动重连。
|
|
tftkDec 22, 2014
6
tmux 用了不想停。
|
|
ernestDec 22, 2014
7
tmux 根本停不下来
|
|
8
profiles -> sessions -> When idel, send ASCII code
|
|
tonghuashuaiDec 22, 2014
10
tmux +1
|
|
WeeekNov 10, 2015
11
在客户端的 ~/.ssh/ 文件夹中添加 config 文件,并添加配置: ServerAliveInterval 60
http://www.cnblogs.com/dudu/archive/2013/02/07/ssh-write-failed-broken-pipe.html |