2014. 6. 2. 06:42
Linux SSH Session Timeout Setting
2014. 6. 2. 06:42 in 3. Implementation/Linux / Unix
Our project faced a very weird problem that SSH.Net cannot get the exit event after 10 minutes. Though the command was finished, SSH.Net was waiting for its completion.
The reason was caused by the time-out of the ssh session. To increase this, set it as below.
$ sudo vi /etc/ssh/sshd_config # 300 secons ClientAliveInterval 300 # 300 * (12) MAX 1 HOUR ClientAliveCountMax 12 $ sudo service ssh restart |
After this, it worked well.