SSHのChrootで刑務所を設定した後、this tutorialに従っています。chrootされたSSHで接続が成功した後、即座にユーザが切断される
私はanother question on StackOverflow dealing with the same problemを見つけましたが、答えは私にとってもうまくいかなかったのです。
auth.log
ファイルには以下が含まれています。
Mar 16 18:36:06 *** sshd[30509]: Accepted password for thenewone from x.x.x.x port 49583 ssh2
Mar 16 18:36:06 *** sshd[30509]: pam_unix(sshd:session): session opened for user thenewone by (uid=0)
Mar 16 18:36:07 *** sshd[30509]: lastlog_openseek: Couldn't stat /var/log/lastlog: No such file or directory
Mar 16 18:36:07 *** sshd[30509]: lastlog_openseek: Couldn't stat /var/log/lastlog: No such file or directory
Mar 16 18:36:07 *** sshd[30509]: pam_unix(sshd:session): session closed for user thenewone
マイsshd_config
ファイルには以下が含まれています。
Match User thenewone
ChrootDirectory /home/thenewone
AllowTcpForwarding no
X11Forwarding no
マイ/home/thenewone
ディレクトリはroot:root
が所有し、chrootされたシステム(すべてのファイルが、/home/thenewone/home/thenewone
所有が含まれていますby root:root
)
なぜ接続が正常に終了したのかわかりません。
助けが必要ですか?見つかっ