Hi,
I tried to set up a sftp/scp only jail with the help of your tutorial
http://olivier.sessink.nl/jailkit/howtos_sftp_scp_only.html
But I can't connect via sftp to the server:
sftp address@hidden
Connecting to x.x.x.x..
address@hidden's password:
Couldn't read packet: Connection reset by peer
Everything seems to be set up correctly, here is the passwd from inside
the jail:
root:x:0:0:root:/root:/bin/bash
share:x:1010:1005:,,,:/home/share:/usr/sbin/jk_lsh
And here the /home/jail/etc/jailkit/jk_lsh.ini
[share]
paths = /usr/bin, /usr/lib/
executables= /usr/bin/scp, /usr/lib/sftp-server
Alos I havn't syslog entries because I somewhat can't find out how to
add the /home/jail/dev/log socket to my official syslog and jk_syslogd
reports the following when starting it:
sudo killall jk_socketd ; jk_socketd
jk_socketd: no process killed
version 2.13, no sockets specified in configfile
/etc/jailkit/jk_socketd.ini or on commandline, nothing to do, exiting...
But my /etc/jailkit/jk_socketd.ini seems to be setup just fine:
[/home/jail/dev/log]
base = 1024
peek = 10240
interval = 2.0
:-(
Can somebody help me out with this pls?
Regards,
Felix Stiehler