[scponly] Fwd: scponly doesn't work

Kaleb Pederson kaleb.pederson at gmail.com
Tue Sep 25 11:00:12 EDT 2012


Have you created a /dev/null device within the chroot using mknod and
set the proper permissions?

If that's not sufficient, I'd recommend you install jailkit and use
that to create the chroot. Once you've installed it, you should be
able to run the following command:

jk_init -f -j /path/to/chroot sftp-server

Jailkit isn't always correct, but it does very well most of the time.

--Kaleb

On Tue, Sep 25, 2012 at 5:25 AM, Tiago Galvão Gomes de Souza
<tiagoggsouza at gmail.com> wrote:
>
>
> ---------- Forwarded message ----------
> From: Tiago Galvão Gomes de Souza <tiagoggsouza at gmail.com>
> Date: 2012/9/24
> Subject: scponly doesn't work
> To: scponly at lists.ccs.neu.edu
>
>
> hello guys,
>
> I'm brazilian and I don't speak english very well but i need help to do
> scponly work,I installed scponly however it doesn't work,My S.O is Centos
> 5.6 I put the bug level 2 and I tried to do some hints on the site but I
> didn't have sucessful,follow the log(/var/secure):
>
> Sep 24 22:24:33 localhost sshd[6920]: Accepted password for scponly from
> 192.168.1.137 port 51076 ssh2
> Sep 24 22:24:33 localhost sshd[6920]: pam_unix(sshd:session): session opened
> for user scponly by (uid=0)
> Sep 24 22:24:33 localhost sshd[6920]: subsystem request for sftp
> Sep 25 01:24:33 localhost scponly[6923]: running:
> /usr/libexec/openssh/sftp-server (username: scponly(500), IP/port:
> 192.168.1.137 51076 22)
> Sep 24 22:24:33 localhost sshd[6920]: pam_unix(sshd:session): session closed
> for user scponly
> Sep 24 22:24:39 localhost sshd[6924]: Accepted password for scponly from
> 192.168.1.137 port 51079 ssh2
> Sep 24 22:24:39 localhost sshd[6924]: pam_unix(sshd:session): session opened
> for user scponly by (uid=0)
> Sep 24 22:24:39 localhost sshd[6924]: subsystem request for sftp
> Sep 25 01:24:39 localhost scponly[6927]: running:
> /usr/libexec/openssh/sftp-server (username: scponly(500), IP/port:
> 192.168.1.137 51079 22)
> Sep 24 22:24:39 localhost sshd[6924]: pam_unix(sshd:session): session closed
> for user scponly
>
> I tried the using the script setup_chroot.sh
>
> I followed the steps:
>
> wget
> http://ufpr.dl.sourceforge.net/project/scponly/scponly/scponly-4.8/scponly-4.8.tgz
> tar -xvzf scponly-4.8.tgz
> cd scponly-4.8
> ./configure --enable-chrooted-binary
> make && make install
>
>
>
> any ideia?
>
>
> --
> Atenciosamente,
>
> Tiago Galvão Gomes de Souza.
>
>
>
> --
> Atenciosamente,
>
> Tiago Galvão Gomes de Souza.
>
> _______________________________________________
> scponly mailing list
> scponly at lists.ccs.neu.edu
> https://lists.ccs.neu.edu/bin/listinfo/scponly
>



More information about the scponly mailing list