1. ssh -o TCPKeepAlive=yes mark@localhost
or
2.
Remember that
ServerAliveIntervalis limited by
ServerAliveCountMaxand that
ServerAliveCountMax
is set to 3 by default!That is, if you set
ServerAliveInterval
to 60 andServerAliveCountMax
is left to default value (3), after the client has sent 3 keep alive packets it will disconnect. That makes 60 x 3 = 180 seconds.So if you want more time away, you set
ServerAliveInterval
to 60 andServerAliveCountMax
to the numer you want (for example: 100). The client will send one keep alive packet every 0 seconds for 100 times or, if you prefer, 100 keep alive packets, one every 60 seconds.You set this up in your
$HOME/.ssh/config
file.Most of these options are explained in
man ssh_config
.Thanks a lot to Cam for pointing us all in the right direction!!!!
'TA > Common' 카테고리의 다른 글
[pam.d] 패스워드 복잡성 적용 방법 (1) | 2012.12.13 |
---|---|
[gparted] gparted 설치 (fedora17) (0) | 2012.12.13 |
[nfs] nfs 파일 시스템에서 파일 lock 이 되지 않을 때 (0) | 2012.03.21 |
[nfs] nfs 서버와 클라이언트 계정 동기화 설정 (0) | 2011.10.19 |
[linux] Standard I/O (0) | 2011.08.10 |