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)

Suivre

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

· · Web · 0 · 0 · 0

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

Inscrivez-vous pour prendre part à la conversation
Mastodon - Zoddo.fr

Le réseau social de l'avenir : Pas d'annonces, pas de surveillance institutionnelle, conception éthique et décentralisation ! Possédez vos données avec Mastodon !