SFTP and Jailkit
Hey Everyone!
Trust me when I say this - I've Google'd this beyond belief and definitely RTFM'd this one. I'm trying to setup a SFTP and limit user access with Jailkit from http://olivier.sessink.nl on a Fedora Core 6 box. SELinux is disabled and so is the firewall. Here is the config for the jk_init.ini file for SFTP and SCP: Code:
[scp] Code:
find / -iname 'scp'; find / -iname 'sftp-server' Code:
mkdir /var/jail Code:
jk_init -v -j /var/jail sftp scp jk_lsh Create my user and password change: Code:
useradd testuser; passwd testuser Code:
jk_jailuser -m -j /var/jail testuser This is my /etc/passwd file: Code:
testuser:x:500:500::/var/jail/./home/testuser:/usr/sbin/jk_chrootsh This is my /var/jail/etc/passwd file: Code:
root:x:0:0:root:/root:/bin/bash Code:
[testuser] Code:
sftp testuser@localhost Code:
tail -f /var/log/messages Code:
Thanks! |
*post withdrawn*
|
Did you find the answer I am having the same problem.
|
Check the Paths and Libraries
I just experienced the same issue. My solution was to check that all libs were installed and that the path to sftp-server was correct.
On a CentOS 5 box with most pkgs installed via yum, the path to sftp-server is /usr/libexec/openssh/sftp-server. Additionally, I found (by running `ldd /usr/libexec/openssh/sftp-server`) that it required /usr/lib/libk5crypto.so.3 and /usr/lib/libk5crypto.so.3.1 HTH Nathan |
Jailkit howto
Hi All!
This thread is old but I think that many people arrive here by googling. Because of many problems about setting up jailkit, I've got written a post on my blog about it... take a look here. I hope this helps. ;) Bye Angelo Fonzeca |
All times are GMT -5. The time now is 12:47 PM. |