To make your life a bit easier, (on Mac) download and configure iTerm and the following applescript files
Download iTerm (note: This seems to have broken with iTerm 9.5.0611. For the time being install previous versions)
Create a folder named Scripts (case matters) under [username]/Library/Application Support/iTerm/. Then open up Script Editor (Applications/AppleScripts/Script Editor). enter the script below and replace:
tell application "iTerm" activate set myterm to current terminal tell myterm set mysession to (make new session) tell mysession set name to "give it a name" exec command "/bin/bash" write text "ssh xx.xx.xxx.xxx -l root" delay 4 write text "your password" end tell end tell end tell
Now compile and save (ex. prod.scpt) to the Scripts Directory.
Once this is done, the next time you start iTerm, these scripts will be available from the Script menu.
To make things even easier you can assign these scripts to keyboard shortcuts using iTerm's built-in “Bookmarks” capability. Go to Bookmarks→Manage Bookmarks and assign these scripts within the dialog. (click the + button in the bottom left to add new bookmarks)