SSH to an AWS EC2 server from an iPhone
October 7, 2010 at 9:54 pmPosted under Me & my ramblings
Tags: cloud computing, iphone, science & technology, work
Comment on this post (0)
The first round of SSH clients for the iPhone presented some problems when connecting to Amazon Web Services EC2 Linux server instances. EC2 instances require a private certificate key file to be used to authenticate to the server during an SSH session. This lead to some workarounds where one had to export the iPhone’s key and add that key to the EC2 server instance. This wasn’t much fun to do. Thankfully, the latest versions of many SSH apps for the iPhone support private key imports. For my example bellow I’m going to be using the iSSH app:
1. Find the .pem key file saved during keypair creation in Amazon Web Services for the instance you launched.
2. Get the the content of the .pem file into the iPhone’s copy/paste memory. There are several ways to do this, here are two of them:
- 2a. Save the pem file to dropbox and open the file on the iPhone using the dropbox app
- 2b. Open the .pem file with a text editor and copy the contents into a new email to an iPhone account
3. Open iSSH, go to General Settings -> Configure SSH Keys -> Import Key…
4. Paste the content of the .pem file into the lower text box; ignore the Key Password field.
5. Go back to the iSSH home screen and select Add Configuration…
6. Select the Use Key and select the key file saved earlier.
7. Save the configuration and connect to the server instance.




- IT service administration apps on the iPhone
- AWS micro instances for personal & learning use
- Can my iphone replace my laptop for travel?
- Paris, France
Post a comment: