- Community Home
- >
- Servers and Operating Systems
- >
- Operating System - HP-UX
- >
- System Administration
- >
- ssh session gets hung after remaining idle for few...
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP