Using Panic Prompt with EC2
Update (May 1, 2012): According to commenter Ethan Cane, these steps are no longer necessary. You should be able to directly transfer your .pem file to Panic Prompt using iTunes File Sharing. The below info is for historical purposes only.
Yesterday, Panic introduced Prompt, an SSH client for iOS. It took a little trial and error to get it working with EC2 .pem files, but I eventually succeeded. Since a lot of the blog comments show other users struggling with the same thing, here’s what worked for me.
- Your .pem file is an RSA private key. You need to generate an RSA public key from it. On Mac OS X, I did this by typing “ssh-keygen -y > foo.pub” and entering foo.pem when prompted for the key file.
- Make a copy of your foo.pem file to get rid of the extension. Now you have “foo” as the private key and “foo.pub” as the public key.
- If Prompt is running on your iPhone, do a hard exit (show the iPhone app switcher UI, long-press the Prompt icon to show the delete adornment).
- Connect the iPhone to your computer
- In iTunes, use File Sharing to transfer first foo.pub, then foo.
Filed under: Uncategorized | 14 Comments