...
Sometimes this is not convenient because several commands are to be run. A solution is to specify a script in authorized_keys and for the script to validate the commands. For example (old version of bung's validate_ssh_cmd.sh):
#!/bin/bash
# Purpose: validates the command a remote host is attempting to execute by ss
...