Reply to Message

View discussion in a popup

Replying to:
gianlucavarenni
Contributor
Contributor

Running out of pseudo terminals on ESXi 6.5u2 - "error: openpty: No such file or directory"

Server running ESXi 6.5u2, SSH and shell enabled.

We periodically SSH into the shell to run some storage diagnostics (LSI storcli). After some time, SSH connections fail because ESXi seems to run out of pseudoterminals (likely some process leaking them??). I see these errors in /var/log/auth.log

2019-08-07T06:28:37Z sshd[127764]: /etc/ssh/sshd_config line 7: Deprecated option UsePrivilegeSeparation

2019-08-07T06:28:37Z sshd[127764]: /etc/ssh/sshd_config line 15: Unsupported option PrintLastLog

2019-08-07T06:28:37Z sshd[127764]: Connection from XXXXX port 43365

2019-08-07T06:28:38Z sshd[127764]: Accepted keyboard-interactive/pam for root from XXXXX port 43365 ssh2

2019-08-07T06:28:38Z sshd[127764]: pam_unix(sshd:session): session opened for user root by (uid=0)

2019-08-07T06:28:38Z sshd[127764]: error: openpty: No such file or directory

2019-08-07T06:28:38Z sshd[127764]: error: session_pty_req: session 0 alloc failed

2019-08-07T06:28:38Z sshd[127764]: pam_unix(sshd:session): session closed for user root

I checked /dev/char/pty and there are 64 pseudoterminals, but I haven't found any way to discover who is using each terminal (lsof is not the same as linux).

Any idea?

Reply
0 Kudos