Why is server throwing "Error: openpty: No such file or directory." while trying to log in via ssh or terminal?

Solution Unverified - Updated -

Issue

  • "test" user is unable to login on the system using ssh command.
  • /var/log/secure contains following error messages.
Dec 15 10:02:04  sshd[23608]: error: openpty: No such file or directory
Dec 15 10:02:04  sshd[23608]: error: session_pty_req: session 0 alloc failed
  • Sometimes remote ssh terminal hangs.

Environment

  • Red Hat Enterprise Linux 5.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.