ssh:write failed

登录某台机器,出现如下错误:
$ ssh [email protected] -vvv

Write failed: Broken pipe

g 了一番,大多都是啥修改 ServerAliveInterval 以及 ClientAliveInterval 这两个值,分别在客户端以及服务端设置,不过修改了下并没有效果。
查看 message 文件:
2692 Aug 28 20:59:38 jaseywang sshd[512]: Accepted publickey for ad from 1.1.1.1 port 54873 ssh2
2693 Aug 28 20:59:38 jaseywang sshd[514]: fatal: setresuid 500: Resource temporarily unavailable
2694 Aug 28 20:59:44 jaseywang sshd[515]: Accepted publickey for ad from 1.1.1.1 port 54885 ssh2
2695 Aug 28 20:59:44 jaseywang sshd[517]: fatal: setresuid 500: Resource temporarily unavailable
2696 Aug 28 20:59:49 jaseywang sshd[519]: Accepted publickey for ad from 1.1.1.1 port 54886 ssh2
2697 Aug 28 20:59:49 jaseywang sshd[538]: fatal: setresuid 500: Resource temporarily unavailable
2698 Aug 28 20:59:55 jaseywang sshd[539]: Accepted publickey for ad from 1.1.1.1 port 54887 ssh2
2699 Aug 28 20:59:55 jaseywang sshd[541]: fatal: setresuid 500: Resource temporarily unavailable
2700 Aug 28 21:00:00 jaseywang sshd[543]: Accepted publickey for ad from 1.1.1.1 port 54889 ssh2
2701 Aug 28 21:00:00 jaseywang sshd[545]: fatal: setresuid 500: Resource temporarily unavailable
2702 Aug 28 21:00:06 jaseywang sshd[640]: Accepted publickey for ad from 1.1.1.1 port 54890 ssh2
2703 Aug 28 21:00:06 jaseywang sshd[651]: fatal: setresuid 500: Resource temporarily unavailable
2704 Aug 28 21:00:11 jaseywang sshd[930]: Accepted publickey for ad from 1.1.1.1 port 54892 ssh2
2705 Aug 28 21:00:11 jaseywang sshd[932]: fatal: setresuid 500: Resource temporarily unavailable
2706 Aug 28 21:00:17 jaseywang sshd[935]: Accepted publickey for ad from 1.1.1.1 port 54898 ssh2
2707 Aug 28 21:00:17 jaseywang sshd[937]: fatal: setresuid 500: Resource temporarily unavailable

资源耗尽了,修改 limits.conf 文件,重启服务,done。