Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

How can I restrict certain file extensions and file upload size via SSH?

I am using Ubuntu 12.10 default installation and Open-ssh server.

share|improve this question

1 Answer 1

OpenSSH doesn't have these facilities, though you might be able to partly do this with commercial products (CrushFTP, Linoma or Barracuda come to mind).

If you want to apply content-filtering to uploads you can do this with OpenSSH by allowing users to upload to an incoming spool, and periodically scanning and moving approved content to an outgoing spool, this also works for A/V scanning. It won't work effectively for size-based uploads if your intention is to save bandwidth, file size is part of the scp protocol, this requires a client to advise, but not necessarily honour file size.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.