To temporarily change the timeout session:
- Login as root user via SSH.
- Set the value of TMOUT to "null # TMOUT=".
- Check the value of TMOUT. It should now be blank, "# echo $TMOUT".
To permanently change the timeout session:
- Login as root user via SSH.
- Edit root user’s .bashrc file, "# vim ~/.bashrc".
- Look for the line that exports the value of TMOUT,
# export TMOUT = `/opt/TrendMicro/GoldenGate/bin/glcfg.sh val bash timeout`
- Comment out the line to disable it,
# export TMOUT=`/opt/TrendMicro/GoldenGate/bin/glcfg.sh val bash timeout`
- Save and exit the vim editor.
- Log off your current session and log back in for the changes to take effect.