hostname make ssh/telnet to hang

From: H.S.Rai (hsrai_at_gmx.net)
Date: 11/25/05


Date: 25 Nov 2005 07:07:28 -0800

Recently I found SSH and telnet behave strangely. After accepting
passwd, I could not get prompt. On little investigation, I found that
when I hangs, "ps -A" shows me:

<ps -A>
  PID TTY TIME CMD
<snip>
11159 ? 00:00:00 sshd
11161 ? 00:00:00 sshd
11162 pts/0 00:00:00 bash
11171 pts/0 00:00:00 hostname
11172 pts/0 00:00:00 hostname <defunct>
</ps>

On issuing "kill -9 11171", I get prompt. That mean "hostname" command
make SSH to hang. Server is having RH9. What could be the reason, and
what can be done to solve this issue?

Thanks in advance.

--
H.S.Rai


Relevant Pages

  • Re: SSH hanging
    ... Sorry for replying late ... ... > when I connect with ssh but it hangs ... ... I don't get the prompt ...
    (freebsd-stable)
  • Re: SSH hanging
    ... > when I connect with ssh but it hangs ... ... I don't get the prompt ... Try running the ssh daemon in debug mode, ...
    (freebsd-stable)
  • Re: FreeBSD Crash without Errors, Warnings, or Panics
    ... Also, some network ports still respond, like a telnet to port 22 to test SSH will yield an SSH banner, but trying to connect with SSH just hangs. ... The box runs a web-based app and connects to a local Postgres DB which seemed to be unable to start new connections being requested by the PHP scripts. ... The only glimmer of information I have is that *one* time there was an error on the console about there not being any RAID controller available. ...
    (freebsd-hackers)
  • Re: ssh session hangs after authentication
    ... (I rarely ssh out from this ... I'll mention that process occasionally hangs ... log file. ... versions of openssh, ...
    (comp.security.ssh)
  • Re: S10 disillusionment
    ... waveform viewers. ... But using X inside the company never hangs! ... Not an ssh problem per se. ... It could be firewall, but strangle is that if I download a huge fileover http from our server everythings runs fine.but if I use a graphictool heavly it hangs, it could be Mozilla or a waveform viewer during HW simulation which also should meen that it can't been a timeout or? ...
    (comp.unix.solaris)