Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Location: Nacka, just outside of Stockholm, Sweden
Distribution: Manjaro Mate, Ubuntu Mate, Debian
Posts: 22
Rep:
ssh on redhat enterprise server hangs
I'm running Red Hat Enterprise Linux AS release 3 (Taroon Update 5) on a Dell server with openafs and local filesystem.
It is connected to a fairly large network with red hat linux work stations and solaris machines on it.
All run a mix of openafs and local file system.
Authentication is made with kerberos against a server residing in the afs portion of the file system.
Many students log in to the server via ssh for various reasons and if they don't log out properly but only close down the terminal window they used to connect to my server there will be a number of processes that hang.
These processes cannot be contacted and they don't die. They are allways in pairs, one parent process that belongs to root and one child process that belongs to the person that logged in. If I try to kill them there is no respons from the parent processes and the child processes become "defunct". If there are more than five such process pairs sshd waits forever when someone makes a new login attempt. It works fine to login with kerberised telnet. I cannot reboot by the command "reboot", it hangs too - probably waiting for sshd that will not shut down. I can, however, issue a "init 6" which reboots the server.
I found a bug report and used the suggested remedy - issue a
shopt -s huponexit
in /etc/bashrc
and
ClientAliveInterval 15
ClientAliveCountMax 4
in /etc/ssh2/sshd2_config to make sshd kill clients after a minute if they don't respond to "are ou alive" questions.
It still doesn't work and I'm somewhat new in this field. Can someone suggest a solution?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.