suexec - Execute a command as any registered user account.
ssh -p <port> -i SITE_PATH/etc/ssh_host_rsa_key "Gerrit Code Review@localhost" suexec --as <EMAIL> [--from HOST:PORT] [--] [COMMAND]
Email address of the user you want to impersonate.
Hostname and port of the machine you want to impersonate the command coming from.
Gerrit command you want to run.
Caller must be the magic user Gerrit Code Review using the SSH daemon’s host key, or a key on this daemon’s peer host key ring, or a user granted the Run As capability.
This command is intended to be used in scripts.