IdleTimeOut=10m
However, the openssh shipped with Fedora doesn't support this option.
Two workarounds are:
- Apply openssh watchdog patch
- use TMOUT for shell
#set the idle timeout for ssh to 10minutes
TMOUT=600
readonly TMOUT
export TMOUT
Notice here, need to set the TMOUT to readonly, otherwise users can override it.