[Nottingham] chroot-ed file transfer

Dylan Swift dylan.swift at gmail.com
Fri Sep 9 12:34:11 UTC 2011

Hi Martin,

most openssh implementations will also allow scp:

for a push operation:
scp [options] /path/to/file <user>@<host>:/path/to/file/location/

for pull, just swap the last 2 parameters

rsync can also specify ssh as a transfer protocol:
rsync [options] /path/to/file <user>@<host>:/path/to/file/location


rsync [options] -e "ssh <ssh options>" /path/to/file <host>:/path/to/file
rsync [options] -e "ssh <ssh options> <host>" /path/to/file /path/to/file

Note that you need to be careful with trailing /'s in rsync
Note that neither of these are chrooted. If you have permissions to write to
a part of the filesystem then you can specify that in the path on the remote


On 9 September 2011 13:24, Martin <martin at ml1.co.uk> wrote:

> Folks,
> For chroot-ed file transfer to/from a server so that a user can only
> see their own space (and nothing else)...
> There appears to be easily used:
> http://www.proftpd.org/
> for ftp and ftps (SSL/TLS);
> OpenSSH
> http://www.openssh.com/
> for sftp (ftp over ssh)
> There's also WebDAV that can be run on Apache for file transfer over
> https and http.
> Just to complete the list: What is there for scp and rsync over ssh?
> Taking a look at using rssh, that looks to be a maintenance nightmare
> to chroot the user access.
> Is there anything else that is /easy/ ?
> Cheers,
> Martin
> _______________________________________________
> Nottingham mailing list
> Nottingham at mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/nottingham

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.lug.org.uk/pipermail/nottingham/attachments/20110909/a2945ee9/attachment.htm>

More information about the Nottingham mailing list