slackware 10.2 chroot/jail ssh
Hello all,
I have been trying to restrict access to my system by implementing a jailed ssh. I have not had much luck. I have downloaded the patched ssh compiled,Installed,created a test user and have no luck.
Here is the directory structure that I have created under /home/chroot.
.
|-- bin
| |-- bash
| |-- ls
| |-- mkdir
| |-- mv
| |-- ping
| |-- pwd
| `-- rm
|-- dev
| |-- null
| `-- zero
|-- etc
| |-- group
| `-- passwd
|-- home
| `-- sftptest
|-- lib
| |-- libc.so.6
| |-- libcrypt.so.1
| |-- libdl.so.2
| |-- libnsl.so.1
| |-- libpthread.so.0
| |-- libresolv.so.2
| |-- librt.so.1
| |-- libtermcap.so.2
| `-- libutil.so.1
`-- usr
|-- bin
| |-- dircolors
| |-- groups
| |-- id
| `-- ssh
`-- lib
|-- libcrypto.so.0
`-- libz.so.1
lines from the /home/chroot/etc/passwd:
sftptest:x:1002:100::/home/chroot/./home/sftptest:/bin/bash
line from /etc/passwd:
sftptest:x:1002:100::/home/chroot/./home/sftptest:/bin/bash
More information can be provided if necessary.
If there is another way the others have used(like jailkit) and had luck. Please let me know.
Thank in advance.
|