Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.


  Search this Thread
Old 06-09-2006, 04:41 AM   #1
LQ Newbie
Registered: Nov 2005
Distribution: Slackware 10, Mandriva 2006
Posts: 10

Rep: Reputation: 0
Question Problem with Scponly and chrooted SFTP


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 ...

 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:
Jun  9 10:27:29 mandriva sshd[9042]: Accepted password for testing from 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: 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
Old 06-11-2006, 03:23 AM   #2
Registered: Apr 2005
Distribution: Mandriva
Posts: 197

Rep: Reputation: 30
Pls consider wrting a bugreport about it to the Mandriva Bugzilla.
Old 07-14-2006, 01:10 PM   #3
LQ Newbie
Registered: Mar 2005
Posts: 29

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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trouble with ScpOnly XaViaR Linux - General 6 12-22-2005 05:22 PM
FC3 : Failing to configure a chrooted sftp gmuller Linux - Software 3 06-28-2005 01:39 AM
How do I use sftp to upload my web site? (no sftp tar command) johnMG Linux - Networking 6 06-21-2005 09:14 PM
chrooted apache problem ixion Linux - Security 19 03-29-2005 03:21 AM
Files truncated by sftp/sftp-server at 65kb gato Linux - Networking 1 12-18-2003 10:29 AM

All times are GMT -5. The time now is 08:05 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration