LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > AIX
User Name
Password
AIX This forum is for the discussion of IBM AIX.
eserver and other IBM related questions are also on topic.

Notices


Reply
  Search this Thread
Old 06-03-2021, 06:24 PM   #1
scottieH
LQ Newbie
 
Registered: Mar 2021
Posts: 27

Rep: Reputation: Disabled
Hanging ssh sessions?


I'm running AIX 7.2. Sometimes, only on certain machines, I'll have a "hung" ssh session. The user has logged out and has no processes running, but there is an SSH session with that user still connected to the socket.

The only way I've found to clear them is to reboot the machine.

Has anyone else encountered this? What causes it and/or how can I prevent it?
 
Old 06-04-2021, 12:54 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 16,510

Rep: Reputation: 5552Reputation: 5552Reputation: 5552Reputation: 5552Reputation: 5552Reputation: 5552Reputation: 5552Reputation: 5552Reputation: 5552Reputation: 5552Reputation: 5552
probably would be nice to check logs on both sides. Also would be nice to know how the ssh server was configured.
 
Old 06-08-2021, 10:21 AM   #3
scottieH
LQ Newbie
 
Registered: Mar 2021
Posts: 27

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
probably would be nice to check logs on both sides. Also would be nice to know how the ssh server was configured.
I've asked the AIX guys to collect this information. There are also looking at which machines have the issue and which don't.
Apparently, they haven't all been built the same way!
[Too bad you can't see the look of shock and awe on my face ]
 
Old 06-10-2021, 12:07 AM   #4
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,170
Blog Entries: 1

Rep: Reputation: 1537Reputation: 1537Reputation: 1537Reputation: 1537Reputation: 1537Reputation: 1537Reputation: 1537Reputation: 1537Reputation: 1537Reputation: 1537Reputation: 1537
Some keep-alive functionality should be enabled to detect connection-losses., eg

/etc/ssh/ssh_config
Code:
ServerAliveInterval 30
/etc/ssh/sshd_config:
Code:
ClientAliveInterval 30
 
1 members found this post helpful.
  


Reply

Tags
ssh access, ssh login


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
is there a way to restrict ssh sessions to a specific ssh client? smbhat Linux - Networking 8 03-11-2009 07:36 AM
ssh very slow/hanging in Slackware 12 shivkiyer Linux - Networking 5 10-05-2007 09:09 AM
Problem with ssh hanging, but only on Linux tomj88 Linux - Networking 12 05-28-2006 09:09 PM
ssh/tcp hanging/sleeping problem Jim Deakin Linux - Networking 0 12-13-2005 07:11 AM
Console hanging and scp transfer low when using ssh XStorm Linux - Networking 1 12-08-2003 09:34 PM

LinuxQuestions.org > Forums > Other *NIX Forums > AIX

All times are GMT -5. The time now is 12:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration