Someone has asked me how I restrict an SSH public key to only allow to SCP to a predefined directory
Here is the script I use for that : https://gist.github.com/Zoddo/035784d640ecf9156fa471534deb1e1f
For example, I use it on the server that stores backups of some of my VMs (so, they don't have a full SSH access to that server)
@zoddo I use rssh
@DaD rssh can restrict to scp (for example) but can't restrict to a predefined directory.