- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ssh sessions not terminating
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
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
тАО12-18-2007 06:12 AM
тАО12-18-2007 06:12 AM
ssh sessions not terminating
who -u is giving more than 60 Hanged user conection which we are not able to kill
Please help me
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-18-2007 07:16 AM
тАО12-18-2007 07:16 AM
Re: ssh sessions not terminating
At this point to clear your system resources you will probably need to reboot.
Try kill -9 if that fails plan for some downtime.
I believe there will be evidience of the problem cause here:
/var/adm/syslog/syslog.log
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-19-2007 06:32 AM
тАО12-19-2007 06:32 AM
Re: ssh sessions not terminating
Can you describe your environment?
Jacques
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-19-2007 06:46 AM
тАО12-19-2007 06:46 AM
Re: ssh sessions not terminating
Restarting ssh probably won't fix the problem, but it won't hurt either so give it a try.
One of the more common reasons ssh appears to hang is the user has kicked off a X11 program. ssh will keep the terminal open until all the child processes are killed. You *should* be able to kill -9 the ssh session through to get rid of those.
If kill -9 isn't working, then you have a more serious issue that'll require some investigation.
First, see if you can identify what the ssh sessions are running by tracing the pids.
ps -ef | grep ssh, check the pid:
ps -ef | grep ${pid}, find any children processes.
Kill those if you can; otherwise, note the program.
As others have noted, if kill -9 isn't working, you'll probably have to reboot. If that's the case, having the information on what processes are causing the hang will give you a starting point.
HTH;
Doug
------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-19-2007 09:37 PM
тАО12-19-2007 09:37 PM
Re: ssh sessions not terminating
Is there any parameter to be checked
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-19-2007 10:16 PM
тАО12-19-2007 10:16 PM
Re: ssh sessions not terminating
If you cant take downtime try to kill all the hanged session by kill -9
BR,
Kapil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-19-2007 11:16 PM
тАО12-19-2007 11:16 PM
Re: ssh sessions not terminating
fatal: mmap(1310720): Not enough space