Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
SMS Forum Index » SMS User Support

Post new topic   Reply to topic
sftp chroot
View previous topic :: View next topic  
Author Message
tux
Junior Member


Joined: 08 Sep 2011
Posts: 5

PostPosted: Sun Oct 16, 2011 1:55 pm    Post subject: sftp chroot Reply with quote

Hi, I have a question, is there a easy way to lock up user in their home dir? i want to share ftp-accounts to my friends. ftp is ok, i figured it out in vsftpd. but i need to share via sftp then i need to lock the user in their homedir, so they cant change folder and read/write in my personal files.
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1757
Location: Greece

PostPosted: Sun Oct 16, 2011 5:08 pm    Post subject: Reply with quote

If you have vsftp running with chroot_local_users=yes then you should have no problem.

Your users may use 'scp' command as well if they have SSH access.
If your files or your home folder have permissions 700 they could not see you.

If you still want to create a chroot environment that article should help you
http://nil-techno.blogspot.com/2010/06/chrooted-ssh-sftp-on-slackware.html

gerasimos_h

_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
tux
Junior Member


Joined: 08 Sep 2011
Posts: 5

PostPosted: Sun Oct 16, 2011 9:57 pm    Post subject: Reply with quote

gerasimos_h wrote:
If you have vsftp running with chroot_local_users=yes then you should have no problem.

Your users may use 'scp' command as well if they have SSH access.
If your files or your home folder have permissions 700 they could not see you.

If you still want to create a chroot environment that article should help you
http://nil-techno.blogspot.com/2010/06/chrooted-ssh-sftp-on-slackware.html

gerasimos_h


Is it possible to get mod_sftp for proftpd on a easy way?
Back to top
View user's profile Send private message
gerasimos_h
Site Admin


Joined: 09 Aug 2007
Posts: 1757
Location: Greece

PostPosted: Mon Oct 17, 2011 5:39 am    Post subject: Reply with quote

Feel free to try it Smile

You need to add in proftpd.conf something like
Code:
<IfModule mod_sftp.c>
    SFTPEngine on
    SFTPLog /var/log/proftpd_sftp.log
    Port 22
    SFTPHostKey /etc/ssh/ssh_host_rsa_key
    SFTPHostKey /etc/ssh/ssh_host_dsa_key
    SFTPCompression delayed
    MaxLoginAttempts 6
</IfModule>

gerasimos_h



proftpd-1.3.3e-i486-2sms.txz
 Description:
Proftp with mod_sftp

Download
 Filename:  proftpd-1.3.3e-i486-2sms.txz
 Filesize:  806.93 KB
 Downloaded:  1002 Time(s)


_________________
Superb! Mini Server Project Manager
http://sms.it-ccs.com
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    SMS Forum Index » SMS User Support All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

SMS - Superb! Mini Server Project © 2016
Powered by phpBB © 2001, 2002 phpBB Group
iCGstation v1.0 Template By Ray © 2003, 2004 iOptional