methods to run script on remote machine via ssh public key verification