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 : gist.github.com/Zoddo/035784d6

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)

@DaD rssh can restrict to scp (for example) but can't restrict to a predefined directory.

@DaD Yes, but that's more complex (and more secure as well)

Inscrivez-vous pour prendre part à la conversation
Mastodon - Etalab

Instance ouverte pour test - lire les CGU Elle est ouverte à tout agent possédant un compte email en ".gouv.fr" ou la liste disponible sur https://forum.etalab.gouv.fr/t/mastodon-le-reseau-social-libre-et-decentralise-en-plein-decollage/3538