LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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
Member
 
Registered: Mar 2021
Posts: 58

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 Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,804

Rep: Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306
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
Member
 
Registered: Mar 2021
Posts: 58

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,856
Blog Entries: 1

Rep: Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869Reputation: 1869
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.
Old 06-27-2021, 08:51 PM   #5
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,800

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by scottieH View Post
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 ]
I got caught up in a situation like that a long while back. Three Solaris servers that had been setup in three different ways... to be used for Dev/Test, QA, and Production servers for a big new commercial application that was being adopted. Symbolic links to the rescue but, on Solaris, that was a far from ideal fix. (The look on my face upon being handed those three boxes was that of disgust when I saw how they'd been configured.)
I hope your server team learns about SOPs for setting up systems.

Cheers...
 
  


Reply

Tags
ssh access, ssh login



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 07:18 AM.

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