- chroot 内にマウントした /proc がないと pam_chroot を使用した SSH chroot が有効ではない

Solution Unverified - Updated -

Issue

  • chroot 内にマウントした /proc がないと、pam_chroot.so を使用する SSH chroot が有効ではありません。ssh サーバーが、/var/log/secure に以下のエラーを記録します。
Aug xx xx:xx:xx hostname sshd[11735]: fatal: openpty returns device for which ttyname fails.

クライアントでは、以下のエラーと切断が示されます。

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 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.