Hello,
I tried to install scponly from source code. I created new user with shell "scponly" ... all works fine, user can login via SFTP.
Then I tried to setup chrooted SFTP with SCPONLY's "make jail" command. But user can't login via SFTP ...
Filezilla:
Code:
Status: Connecting to mandriva:22 ...
Status: Connected with mandriva:22, initializing SFTP connection...
Command: CONNECT testing@mandriva:22
Response: Fatal: unable to initialise SFTP: could not connect
Error: Unable to connect!
Mandriva log:
Code:
Jun 9 10:27:29 mandriva sshd[9042]: Accepted password for testing from 192.168.0.2 port 1699 ssh2
Jun 9 10:27:29 mandriva sshd[9044]: subsystem request for sftp
Jun 9 10:27:29 mandriva scponly[9045]: chrooted binary in place, will chroot()
Jun 9 10:27:29 mandriva scponly[9045]: 3 arguments in total.
Jun 9 10:27:29 mandriva scponly[9045]: ^Iarg 0 is scponlyc
Jun 9 10:27:29 mandriva scponly[9045]: ^Iarg 1 is -c
Jun 9 10:27:29 mandriva scponly[9045]: ^Iarg 2 is /usr/lib/ssh/sftp-server
Jun 9 10:27:29 mandriva scponly[9045]: opened log at LOG_AUTHPRIV, opts 0x00000029
Jun 9 10:27:29 mandriva scponly[9045]: retrieved home directory of "/home/testing" for user "testing"
Jun 9 10:27:29 mandriva scponly[9045]: chrooting to dir: "/home/testing"
Jun 9 10:27:29 mandriva scponly[9045]: chdiring to dir: "/"
Jun 9 08:27:29 mandriva scponly[9045]: setting uid to 503
Jun 9 08:27:29 mandriva scponly[9045]: processing request: "/usr/lib/ssh/sftp-server"
Jun 9 08:27:29 mandriva scponly[9045]: running: /usr/lib/ssh/sftp-server (username: testing(503), IP/port: 192.168.0.2 1699 22)
It doesn't work on two Mandriva boxes (i686, 64bit). But it's working on two Slackware boxes
. I think that problem is in the Mandriva.
Thank you for your help