in reply to SSH tunneling, CGI or something better

How do you want it to be better? Do you want to use less bandwidth? Do you want to start the script running and not have to keep a network connection open? Do you care if anyone else on the network can run the script? Do you care if people watching the network traffic are able to see something the script prints out? Are you tired of having to type in a password each time you run the script? Do you not like having to keep SSH keys on one of the machines for logging into the other?

Answers to the above questions indicate the mechanisms you should be using for running scripts on a remote machine.

I often use ssh with a password when I want to run the command manually.

For periodic cron jobs like backing up data I use ssh keys to keep the data encrypted and not require a login. (Just use rsync with --rsh=ssh.)

If I just wanted to grab the machine's load average and vital stats I would consider using a CGI because it doesn't require a login and I don't care if anyone sees the data.