无法通过chroot SSHlogin

我不仅要通过sftp传输文件,还要通过sshlogin。

这是我在sshd_config中更改的内容

Match Group ssh_jail ChrootDirectory /mnt/chroot 

我已经挂载/ mnt / chroot / dev,/ mnt / chroot / dev / pts,/ mnt / chroot / proc,/ mnt / chroot / sys我还将bash复制到/ mnt / chroot / bin和一些lib文件到/ MNT / chroot / lib64下

但是我无法通过sshlogin。 以下是我在/ var / log / secure中find的内容

 Accepted password for xxx from ::1 port 53069 ssh2 pam_unix(sshd:session): session opened for user xxx by (uid=0) error: mm_receive_fd: no message header fatal: mm_pty_allocate: receive fds failed pam_unix(sshd:session): session closed for user xxxx 

这是为什么?

我禁用SELinux并重新启动,然后现在一切正常。