linux + huge sshd: ps의 root@notty

linux + huge sshd: ps의 root@notty

VIA를 통해 RHEL 서버 중 하나에 액세스할 수 없습니다.ssh

~처럼

ssh $remote_machine
Last login: Sun Jul 24 12:37:25 2022 from  ...... 

**login is HANG**

우리가 할 때ssh $remote_machine "uptime"

우리는 엄청난 CPU 로드 평균을 보았습니다. (비록 우리는 해당 컴퓨터에만 86.3있었음에도 불구하고 )8 CPU

sshd: root@notty지금까지 우리 는 일을 하면서 많은 것을 보아왔다는 것을 발견했습니다.ssh remote_machine "ps -ef | grep ssh"

ssh $remote_machine "ps -ef| grep sshd"
root        685      1  0 May28 ?        00:00:00 sshd: root@notty
root        977      1  0 May28 ?        00:00:00 sshd: root@notty
root       1171      1  0 Jul16 ?        00:00:00 sshd: root@notty
root       1719      1  0 Jul13 ?        00:00:00 sshd: root@notty
root       2273      1  0 Jun08 ?        00:00:00 sshd: root@notty
root       3135      1  0 May30 ?        00:00:00 sshd: root@notty
root       3265      1  0 Jun02 ?        00:00:00 sshd: root@notty
root       5154      1  0 12:56 ?        00:00:00 bash -c ps -ef| grep sshd
root       5169   5154  0 12:56 ?        00:00:00 grep sshd
root       6528      1  0 12:57 ?        00:00:00 bash -c ps -ef| grep sshd
root       6542   6528  0 12:57 ?        00:00:00 grep sshd
root       6995      1  0 12:57 ?        00:00:00 bash -c ps -ef| grep sshd
root       7009   6995  0 12:57 ?        00:00:00 grep sshd
root       7587 129674  0 12:57 ?        00:00:00 sshd: root@notty
root       7656 129674  1 12:57 ?        00:00:00 sshd: root@notty
root       7723 129674  1 12:57 ?        00:00:00 sshd: root@notty
root       7751 129674  0 12:57 ?        00:00:00 sshd: root@notty
root       7759   7751  0 12:57 ?        00:00:00 bash -c ps -ef| grep sshd
root       7773   7759  0 12:57 ?        00:00:00 grep sshd
root      34015      1  0 Jul20 ?        00:00:00 sshd: root@notty
root      36646      1  0 Jun14 ?        00:00:00 sshd: root@notty
root      39014      1  0 Jul08 ?        00:00:00 sshd: root@notty
root      39710      1  0 May25 ?        00:00:00 sshd: root@notty
root      40111      1  0 Jul22 ?        00:00:00 sshd: root@notty
root      44437      1  0 Jun21 ?        00:00:00 sshd: root@notty
root      44573      1  0 Jul14 ?        00:00:00 sshd: root@notty
root      45549      1  0 Jul17 ?        00:00:00 sshd: root@notty
root      45886      1  0 May21 ?        00:00:00 sshd: root@notty
root      45934      1  0 May31 ?        00:00:00 sshd: root@notty
root      49840      1  0 Jul20 ?        00:00:00 sshd: root@notty
root      52583      1  0 Jun09 ?        00:00:00 sshd: root@notty
root      52785      1  0 Jun14 ?        00:00:00 sshd: root@notty

.
.
.
.
.
 

우리는 sshd의 pid를 죽이려고 합니다

ssh  $remote_machine "kill -9  685  977 ...."

하지만 여전히 많은 sshd: 원격 시스템의 root@notty라인ps -ef

마지막 옵션은 컴퓨터를 재부팅하는 것입니다

하지만 우리 컴퓨터에 그렇게 큰 SSHD 프로세스가 생기는 것을 방지하기 위해 할 수 있는 일이 있을까요?

관련 정보