Changing the Auto-Logout Timeout in SSH
2014-04-11 15:54
423 查看
http://www.adercon.com/ac/node/39
The ssh "timed out waiting for input: auto-logout" messages is generated by ssh upon reaching a auto-logout after an inactivity time
specified by the TMOUT environment variable. If this variable is not set your session will not be auto-logged out due to inactivity. If the environment variable is set, your session will be automatically closed/logged out after the amount of seconds specified
by the TMOUT variable.
To see if your auto-logout variable is set and/or see what it is set to issue the following command:
$ echo $TMOUT
Often this value is defined in /etc/profile (globally) or your user's profile (~/.profile or ~/.bash_profile).
To alter the auto-logout amount, set the TMOUT environment variable accordingly:
* TMOUT=600 #set an auto-logout timeout for 10 minutes
* TMOUT=1200 #set an auto-logout timeout for 20 minutes
* TMOUT= #turn off auto-logout (user session will not auto-logout due to session inactivity)
This value can be set globally (e.g. TMOUT=1200) in the /etc/profile file; however, each user can override the value by setting the TMOUT
variable in their personal profile file (~/.profile or ~/.bash_profile). To do this simply set the TMOUT variable as you like in your profile file.
Dont forget to source the file you changed to get the settings to take effect immediately or log out and log back in.
这种情况被发生在Red hat上面。
The ssh "timed out waiting for input: auto-logout" messages is generated by ssh upon reaching a auto-logout after an inactivity time
specified by the TMOUT environment variable. If this variable is not set your session will not be auto-logged out due to inactivity. If the environment variable is set, your session will be automatically closed/logged out after the amount of seconds specified
by the TMOUT variable.
To see if your auto-logout variable is set and/or see what it is set to issue the following command:
$ echo $TMOUT
Often this value is defined in /etc/profile (globally) or your user's profile (~/.profile or ~/.bash_profile).
To alter the auto-logout amount, set the TMOUT environment variable accordingly:
* TMOUT=600 #set an auto-logout timeout for 10 minutes
* TMOUT=1200 #set an auto-logout timeout for 20 minutes
* TMOUT= #turn off auto-logout (user session will not auto-logout due to session inactivity)
This value can be set globally (e.g. TMOUT=1200) in the /etc/profile file; however, each user can override the value by setting the TMOUT
variable in their personal profile file (~/.profile or ~/.bash_profile). To do this simply set the TMOUT variable as you like in your profile file.
Dont forget to source the file you changed to get the settings to take effect immediately or log out and log back in.
这种情况被发生在Red hat上面。
相关文章推荐
- Changing the Auto-Logout Timeout in SSH
- ssh另一台机器时,报Password authentication is disabled to avoid man-in-the-middle attacks.
- Changing the Starts With Filter in a Webtop 6.5 Object Locator into a Contains Filter(将查找对象对话框中的'以...开始'改为'包含')
- Redefine:Change in the Changing World
- Auto packing the repository in background for optimum performance
- Changing the TCP RTO value in Linux
- ssh小问题.but this does not map back to the address – POSSIBLE BREAK-IN ATTEMPT!
- Server Tomcat v7.0 Server at localhost was unable to start within 45 seconds. If the server requires more time, try increasing the timeout in the server editor.
- 执行vagrant ssh命令时出现`ssh` executable not found in any directories in the %PATH%.提示的解决办法
- the main methos of class Ssh in pyssh module
- If the server requires more time, try increasing the timeout in the server editor
- Changing the Font Size in Eclipse
- jmitm2 is a SSH2 man-in-the-middle-attack program based on the SSH2 client/server implementation J2SSH
- Correct Method of Changing the IP Address in 11i & R12 (Doc ID 751328.1)
- SSH整合:No object in the CompoundRoot has a publicly accessible property named 'x'
- Redefine:Change in the Changing World
- Changing the layout direction of a form item in Flex
- Changing the default port in WebSphere Application Server
- The issus in Age Progression/Regression by Conditional Adversarial Autoencoder (CAAE)
- ssh连接报警 does not map back to the address - POSSIBLE BREAK-IN ATTEMPT! 的解决办法!