Using Cyberduck to SFTP to t2.micro EC2 instance Fails

33 Views Asked by At

I am trying to SFTP using Cyberduck to my t2.micro instance with EC2. I am repeatedly getting auhtentication failed. I am following all the steps as provided: stackoverflow and here.

I have successfully ssh'ed from terminal with the same .pem file.

However, from Cyberduck: enter image description here

it fails:

enter image description here

1

There are 1 best solutions below

1
John Rotenstein On

To test your situation, I did the following:

  • Went to the EC2 management console
  • Created a new keypair and saved the key to disk
  • Launched a new EC2 t2.micro instance, selecting the keypair I had saved and "Allow SSH traffic from 0.0.0.0/0"
  • To test the EC2 instance, I used SSH to connect to the instance, specifying the keypair (I had to chmod 600 key.pem first`) -- the logon was successful
  • Downloaded and installed Cyberduck (I'm on a Mac)
  • Configured Cyberduck:

Cyberduck configuration

  • Opened the connection -- it was successful.

Hopefully the above steps will help you figure out what is going wrong on your attempts.

Theoretically, if you can SSH into an instance then you can also use SFTP with it, since they connect in exactly the same way.