Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I connect to a remote server with a public key using Fugu? I'm using Amazon EC2, so I have .pem public key, but I'm totally new to Fugu and I can't see any form or input for the public key. In the "connect to" text input shall I enter in my public DNS?

share|improve this question

migrated from Feb 14 '12 at 4:15

This question came from our site for users of Linux, FreeBSD and other Un*x-like operating systems.

Fugu is really just a graphical front-end to the built-in ssh/sftp commands you could use in Terminal. I found a nice write-up for getting started with EC2 for MacOSX users by Robert Sosinski: Starting Amazon EC2 with MacOSX

Note that he walks you through some Terminal commands, including generating a new ssh keypair to connect to your chosen EC2 image. When you get that ready and can successfully connect to your EC2 server via ssh in Terminal, then you can use Fugu for further file transfers.

In the main Fugu window, if you expand "Advanced SFTP Options", you'll see a field where you can enter Additional SSH options. You could enter something like: -i ~/.ec2/ec2-keypair to indicate the appropriate ssh key to use. And in the example he gives, you would connect to

share|improve this answer

Note: I found entering -i ~/PATH/TO/ec2-keypair.pem didn't work for me, but another workaround in the same field worked.

In the "Advanced SFTP Options", in the same Additional SSH Options dialogue enter:


So, for example, if your EC2 instance looks like

with your key being at the root and named


then the relevant input is:

Connect to:

Username: root

Additional SSH options: -oIdentityFile=~/ec2-keypair.pem

Hope it works for you!

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.