Mount Amazon Ec2 with Mac OSX

MacFusion is a free OSX app for mounting FTP and SFTP (SSH) drives into mac finder. Usually you use a user/password combination for authentification but if you want mount an amazon ec2 instance you have to use the pem-file you get here.

First copy the pem file to the hidden .ssh folder and add the content of the pem-file to your keychain:

cp mypemfile.pem ~/.ssh
ssh-add -K ~/.ssh/mypemfile.pem

Next open the ssh-config file (usually its empty) …

vim ~/.ssh/config

… and add the config for you instance:

Host public-ec2-dns.compute.amazonaws.com
HostName public-ec2-dns.compute.amazonaws.com
User root
IdentityFile ~/.ssh/mypemfile.pem

Download MacFusion
Amazon EC2
see superuser.com

  • credes

    Hey, how did you configure MacFusion? I can ssh into ec2 without problems, but macfusion tells me “authentication has failed”. I used “ec2-user” and the elastic ip address, but no password.

  • credes

    Hey, how did you configure MacFusion? I can ssh into ec2 without problems, but macfusion tells me “authentication has failed”. I used “ec2-user” and the elastic ip address, but no password.

    • jungwon jin

      I have same issue. I usually used -i option when I connect ssh to EC2 server, but ssh-add tool was the best idea to connect them with ssh.
      But still can’t connect with MacFusion.