Quote: Original post by Khaos Dragon
I am actually tunneling from one ssh server to another so flagging a key as a password for the first machine won't fix the issue.
Sure it will. Just put your computer's public key into ~/.ssh/authorized_keys on the first server and put the public key of the first server into ~/.ssh/authorized_keys on the second server.
Also, I think ssh can read from standard input. So if you have a file (somecommands.txt) that contains come commands, you can do:
$ ssh username@server < commands.txt