- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: ssh session gets hung after remaining idle for...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-14-2015 06:21 AM
тАО09-14-2015 06:21 AM
ssh session gets hung after remaining idle for few hours or minutes
Hello Experts,
I had two servers , where one server ssh connection is not getting timeout and is remaning live even after accessing after few hours.
And in one server, ssh session gets hung if the session remains idle. (This is problem)
May i have an solution for the same.
- Tags:
- ssh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-14-2015 09:24 AM
тАО09-14-2015 09:24 AM
Re: ssh session gets hung after remaining idle for few hours or minutes
Hi Indrajit,
any firewall between the server and client?
Else they can use Alive options of ssh
man ssh_config
ServerAliveInterval
ServerAliveCountMax
man sshd_config
ClientAliveCountMax
ClientAliveInterval
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-15-2015 06:28 AM - edited тАО09-15-2015 06:30 AM
тАО09-15-2015 06:28 AM - edited тАО09-15-2015 06:30 AM
Re: ssh session gets hung after remaining idle for few hours or minutes
You could also add the TMOUT variable to .profile so the shell will timeout and disconnect:
export TMOUT=3600
This will timeout with no typing in the shell after 60 minutes (3600 seconds).
(this assumes that your shell is ksh, POSIX sh or bash)
Bill Hassell, sysadmin