[mdlug] sftp on centos 6 expert wanted

Jeff Hanson jhansonxi at gmail.com
Wed Jan 25 23:52:14 EST 2012


I'm too busy to get involved with this and I haven't used CentOS/Red
Hat/Fedora much so I can only offer some observations based on my
Ubuntu build.

OpenSSH would be the way to go with the "ChrootDirectory" directive
and key-based authentication.

Basically they would need to create a GPG key pair (ssh-keygen) and
send you the public key to add to the sshd key file
(~/.ssh/authorized_keys on Ubuntu).  To connect they just need to:

sftp -o IdentityFile=$HOME/.ssh/id_dsa -o Port=<port #> <server username>@URL

It could get complicated if you need to automate chroot directory
creation and mounting across multiple servers.  If these will be
pre-configured then the ssh configuration should be relatively easy.

Have a look at this:
http://en.wikibooks.org/wiki/OpenSSH/Cookbook/SFTP#Chrooted_SFTP-Only_Accounts



More information about the mdlug mailing list