Ferdorians,
This is my first message to this groups, I don't really know if this
would be the best group for my question. I am experiencing this
problem for some time now, I hope you can help.
The main problem is that my machine is causing CPU excessive usage
when a SSH session is closed. It does not happen when openining,
neither during the session, but when it is closed.
I have tried to collect some evidence, here they are:
- This is what I telled the machine for this test:
$ ps -e -o pcpu,cputime,pid,args > before
$ ssh localhost
thiagob@localhost's password:
id: cannot find name for group ID 74594
$ ps -e -o pcpu,cputime,pid,args > during
$ exit
$ ps -e -o pcpu,cputime,pid,args > after
- Prior to the execution of the SSH client, everything is perfect with
the processes running on the machine. I won't attach the process
monitor report here because it is very long and doesn't add much
information. There is almost no CPU activity prior to executing the
client.
- After opening an SSH terminal, the CPU isn't busy. Here is the
process status I got with the terminal opened:
$ grep ssh during
0.0 00:00:00 1898 /usr/sbin/sshd
0.0 00:00:00 2605 /usr/bin/ssh-agent startkde
0.4 00:00:00 4470 ssh localhost
0.0 00:00:00 4471 sshd: thiagob [priv]
0.0 00:00:00 4479 sshd: thiagob@pts/8 << This is the one that gets hungry
- After executing the `exit` command, the CPU become annoingly busy:
$ grep ssh after
0.0 00:00:00 1898 /usr/sbin/sshd
0.0 00:00:00 2605 /usr/bin/ssh-agent startkde
0.0 00:00:00 4471 sshd: thiagob [priv]
98.0 00:00:05 4479 sshd: thiagob@notty
^^
- These are the versions for the software:
$ ssh -V
OpenSSH_3.6.1p2, SSH protocols 1.5/2.0, OpenSSL 0x0090701f
$ uname -a
Linux serpro-1422052.rce.serpro 2.6.5-1.358 #1 Sat May 8 09:04:50 EDT
2004 i686 i686 i386 GNU/Linux
$ bash --version
GNU bash, version 2.05b.0(1)-release (i386-redhat-linux-gnu)
Copyright (C) 2002 Free Software Foundation, Inc.
Some weird facts:
- The same behavior is observer in two other machines when I open an
SSH session from my machine
- My logout scripts are empty on all machines, they contain at most a
command to clena the term
I hope anyone can help.
Cheers,
Thiago Arrais