I already have an ssh agent set up, and I can run commands on an external server in Bash script doing stuff like:
ssh blah_server "ls; pwd;"
Not sure if the cleanest for long commands but certainly the easiest:
ssh user@host "cmd1; cmd2; cmd3"