LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   Problem with Scponly and chrooted SFTP (https://www.linuxquestions.org/questions/mandriva-30/problem-with-scponly-and-chrooted-sftp-453113/)

kicko 06-09-2006 04:41 AM

Problem with Scponly and chrooted SFTP
 
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

dexter11 06-11-2006 03:23 AM

Pls consider wrting a bugreport about it to the Mandriva Bugzilla.

treebug 07-14-2006 01:10 PM

I am also having this problem with RedHat. Was there a solution?
It works with psftp and winscp.


All times are GMT -5. The time now is 05:53 PM.