Elasticfox, OSX and iTerm
October 1st, 2008Elasticfox is a nice extension for managing your relationship with EC2 from within Firefox. It’s XUL-based, somewhat homely and odd. But it’s so much nicer than dealing with the ec2-* scripts directly and copying Amazon’s wacky hash identifiers hither and thither.
But on OSX, the “ssh to this instance” button is wired up to Terminal.app. I can’t stand Terminal.app. I much prefer iTerm.
So, a little AppleScript hacking, and Elasticfox now uses iTerm to connect to instances through ssh.
Instead of jamming it all into a dozen -e options on osascript, I just put it in a file, and changed my configuration.
And the script itself:
on run argv
tell application "iTerm"
activate
set cmd to "ssh -i " & item 1 of argv & " " & item 2 of argv
set myterm to the last terminal
tell myterm
launch session "Default Session"
tell the last session
write text the cmd
end tell
end tell
end tell
end run

October 29th, 2008 at 3:05 pm
Very nice – worked first time. Many thanks.
October 30th, 2008 at 9:26 am
Awesome!
I needed to change the script because my keys were named id_rsa-{$key}, so my SSH Key Template line looks like this:
${home}/ec2-keys/id_rsa-${key}
Thanks for this tip!
November 20th, 2008 at 11:50 am
Awesome — thanks very much!
January 19th, 2009 at 10:09 pm
Take a look at:
https://console.aws.amazon.com/
Amazon finally is taking some steps to make EC2 a consumable service. Not perfect, but getting better :)