Need help with shell scripts
How do I write a shell script that logs me into a remote machine, executes commands on the remote machine and then exits and returns me to my local machine prompt? (I have setup ssh to allow key authentication.) Any help would be awesome!!