Use applescript to open ssh connections


 

Imagine a scenario were you have multiple servers and you cannnot generate keys. But you are lucky
enough to have a Mac. Solution is pretty straightforward Applescript!!!

tell application "Terminal"
activate
do script "ssh user@hostname.tld”
delay 1
tell application "System Events"
keystroke “password”
keystroke return
end tell
end tell

Save as application and you are ready!!

Computer says you need 1 min. to read