死亡进程(停止运行)

死亡进程(停止运行)

我有一个脚本,它使用多个 ssh 会话将文件上传到远程主机。它已经运行多年了。由于某种原因,它最近停止了工作,因为其中 2 个进程死亡(它们失效了)。

如何找出他们死亡的原因?

以下是 ps 的输出

root@vm-img1-en:~# ps aux | grep ssh | grep root
root      2389  0.0  0.1   4648  1048 ?        Ss   01:01   0:00 /usr/sbin/sshd
root      2517  0.0  0.3   7576  2464 ?        Ss   01:01   0:00 sshd: root@pts/0
root      2563  0.0  0.3   7576  2460 ?        Ss   01:01   0:00 sshd: root@pts/1
root      2873  0.0  0.5   8820  3828 ?        Ss   01:07   0:01 sshd: root@pts/2
root      3702  0.0  0.3   4668  2048 pts/1    S+   01:23   0:00 /usr/bin/ssh -o StrictHostKeyChecking=no -o BatchMode=yes -T -l rdamuq -p 22 vm-ss3.ba.nc
root      3713  0.1  0.7   7504  4904 pts/1    S+   01:23   0:00 /usr/bin/ssh -o StrictHostKeyChecking=no -o BatchMode=yes -T -l rdamuq -p 22 vm-ss1.fl.nc
root      3716  0.0  0.2   4648  1992 pts/1    S+   01:23   0:00 /usr/bin/ssh -o StrictHostKeyChecking=no -o BatchMode=yes -T -l rdamuq -p 22 vm-ss1.ba.nc
root      3717  0.0  0.2   4532  1984 pts/1    S+   01:23   0:00 /usr/bin/ssh -o StrictHostKeyChecking=no -o BatchMode=yes -T -l rdamuq -p 22 vm-img1-skbg.sf.nc
root      3728  0.0  0.2   4532  1984 pts/1    S+   01:23   0:00 /usr/bin/ssh -o StrictHostKeyChecking=no -o BatchMode=yes -T -l rdamuq -p 22 vm-img1.ow.nc
root      3733  0.0  0.2   4652  1992 pts/1    S+   01:23   0:00 /usr/bin/ssh -o StrictHostKeyChecking=no -o BatchMode=yes -T -l rdamuq -p 22 vm-ss2.ba.nc
root      3744  0.0  0.2   4536  1984 pts/1    S+   01:23   0:00 /usr/bin/ssh -o StrictHostKeyChecking=no -o BatchMode=yes -T -l rdamuq -p 22 vm-ss1.fr.nc
root      3749  0.0  0.0      0     0 pts/1    Z+   01:23   0:00 [ssh] <defunct>
root      3750  0.0  0.0      0     0 pts/1    Z+   01:23   0:00 [ssh] <defunct>
root      3751  0.0  0.2   4532  1984 pts/1    S+   01:23   0:00 /usr/bin/ssh -o StrictHostKeyChecking=no -o BatchMode=yes -T -l rdamuq -p 22 vm-img1.su.nc

相关内容