If you wish to close idling ssh-connections you may do so by just adding two lines into your sshd_config-file. The lines would be as followed:
ClientAliveInterval 10
ClientAliveCountMax 1
The ClientAliveInterval means seconds to wait before sending first ClientAliveCountMax. So, the connection will close after ClientAliveInterval*ClientAliveCountMax=10*1=10 seconds.
Bash
export TMOUT=300
screen
So, the config goes as:
idle 900 lockscreen
where the 900 defines idle time in seconds before locking the screen up.
Ei kommentteja:
Lähetä kommentti