en fait le user se connecterait en ssh sur la becanne et ne devrait pouvoir QUE lancer un script qui se trouve dans son home
Avec un couple de clé privée / publique et en utilisant l'option command=mon-script ajoutée au fichier authorized_keys tu devrais arriver à ce que tu cherches.
man sshd
command="command"
Specifies that the command is executed whenever this key is used for authentication.
The command supplied by the user (if any) is ignored. (...) This option might be useful
to restrict certain public keys to perform just a specific operation. An example might be a key
that permits remote backups but nothing else.
[^] # Re: Précisions?
Posté par Ellendhel (site web personnel) . En réponse au message droits utilisateur. Évalué à 8.
Avec un couple de clé privée / publique et en utilisant l'option command=mon-script ajoutée au fichier authorized_keys tu devrais arriver à ce que tu cherches.
man sshd
command="command"
Specifies that the command is executed whenever this key is used for authentication.
The command supplied by the user (if any) is ignored. (...) This option might be useful
to restrict certain public keys to perform just a specific operation. An example might be a key
that permits remote backups but nothing else.