- The SSH chroot does not work with pam_chroot when there is no mounted /proc inside the chroot.

Solution Unverified - Updated -

Issue

  • SSH chroot using pam_chroot.so does not work when there is no mounted /proc inside the chroot. The ssh server throws the following error in /var/log/secure:
Aug xx xx:xx:xx hostname sshd[11735]: fatal: openpty returns device for which ttyname fails.

while the client shows the following error and disconnects:

Connection to localhost closed by remote host.
Connection to localhost closed.

Environment

  • glibc-2.5-81.el5_8.4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content