Old 2nd August 2009, 01:01
eugeneapolinary80 eugeneapolinary80 is offline
Junior Member
Join Date: Aug 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default sftp with chroot?


os: Debian Lenny 64bit

I want to make an sftp server....

- Only an sftp server
- Some users may log in by ssh (with openssh-server), some users can only use sftp
- Important! - Chroot! Users using sftp must only see e.g.: their home directory, or better: a folder in it.
- Under Debian Lenny

Is there any good, secure solution? At least links to howtos? :S

I tried:

apt-get install scponly
dpkg-reconfigure scponly # Select: Yes
cd /usr/share/doc/scponly/setup_chroot
gunzip setup_chroot.sh.gz
sh setup_chroot.sh # Just use default settings

Ok, now I:

echo "">/var/log/auth.log

Then try to log in:

sftp scponly@localhost

"Connection closed."...


Why doesn't it work?

p.s.: Yes, I copied the sftpd-server to /home/scponly/usr/lib/sftpd-server

is it a bug?

Thank you
Reply With Quote
Sponsored Links


Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Writable SFTP Chroot Jail? danieljdoughty Server Operation 4 6th September 2009 03:27
sftp with chroot? eugeneapolinary80 Server Operation 1 2nd August 2009 13:27
chroot sftp with openssh cisco Installation/Configuration 1 28th March 2009 10:37
chroot sftp server ubuntu karmellove Installation/Configuration 2 23rd March 2009 12:48
Improper use of CHROOT enviroment X secure file transfer between customer and admin. adrenalinic Installation/Configuration 1 21st December 2008 22:48

All times are GMT +2. The time now is 21:09.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.