ssh [email protected] -i rsa_private_key 'bash -s arg01 arg02' < some_script.sh

See also: