[little knowledge] timeout setting of SSH connection in Linux system

Determine whether the timeout is set
Command line: echo $tmout

For example:
[[email protected] ~]# echo $TMOUT
If 100 is output, the timeout is 100 seconds.

If the output is empty or 0 indicates no timeout, and the number n greater than 0 indicates that the channel is not used within N seconds, the timeout will occur.

Modify timeout parameters

1. Open the configuration file: VI / etc / profile
2. Findexport TMOUT=xxxxIn this line, modify the time value XXXX to the time you need, such as export tmout = 600
3. Yes, the configuration takes effect: source / etc / profile