#1  
Old 1st August 2009, 23:59
eugeneapolinary80 eugeneapolinary80 is offline
Junior Member
 
Join Date: Aug 2009
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default sftp with chroot?

Hi

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:
--------------------
#!/bin/bash

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

log:
http://pastebin.com/fbc34c01


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
  #2  
Old 2nd August 2009, 12:27
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
 
Default

http://www.howtoforge.com/chrooted-s...l-debian-lenny
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

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 02:27
chroot sftp with openssh cisco Installation/Configuration 1 28th March 2009 09:37
chroot sftp server ubuntu karmellove Installation/Configuration 2 23rd March 2009 11:48
Improper use of CHROOT enviroment X secure file transfer between customer and admin. adrenalinic Installation/Configuration 1 21st December 2008 21:48
ssh chroot works, but no scp for chroot users zokahn HOWTO-Related Questions 5 30th January 2006 09:33


All times are GMT +2. The time now is 11:06.


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