• # command=

    Posté par . En réponse au message Limiter les commandes à une clé ssh. Évalué à 6.

    Dans le fichier authorized_keys, placer un command="" avant la clef. Cette commande sera executée automatiquement à la connexion, puis la connexion s'arrete une fois la commande terminée.

    On lit dans man sshd :

    "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. "

    ça me semble etre exactement ton cas !

    exemple :

    ---- authorized_keys ----
    command="ls" ssh-rsa AAAB3NzaC1yc2EAAAABIwAAAQEA7qpkG [...]