Accessing Amazon EC2 in Filezilla SFTP

amazon ec2filezillappksftp

I need help/guide how I can open my ssh access from a GUI or Filezilla.

Here's the scenario my developer just left me with the login info to my Amazon EC2. Now I am finding difficulties in understanding all this stuff. I used PuTTy and command prompt just to connect to my server using ssh process. It uses some bridge process just to connect to my actual server.

right now he provided me 2 sets of login.

[Set1]

  • bridge.hisdomain.com
  • username
  • somepassword

[Set2]

  • ssh username@123.456.789.123
  • somepassword

[my process]

in [Set1] I enter "bridge.hisdomain.com" in the hostname of PuTTy. after I hit Open It will open a terminal and will asked for a username. thats where I provide my [Set1] username and password.

Ounce login, I then perform [Set2] Details. I will use "ssh username@123.456.789.123" after I enter it, It will then asked for my password.

from there, when I do "DIR" in command prompt I will see al my files there. I wanted to download a directory there to my local drive but I am not familiar with the commands.

I would like to access it just by using FileZilla or similar. And I've also tried this but I don't know what I'd miss, because It didn't work for me. I downloaded a .pem file from the [set1] because I can also access it using a regular FTP (filezilla) and I then converted that .pem file to .ppk.

right now I'm kinda confuse what login info I should use for my FileZilla to access the server.
I had success in loging via FTP using [Set1] login details. But my files aren't there. I only saw some folders and a .pem file.

I can't login to my Filezilla using [set2] details. I tried FTP and SFTP. I also added the .ppk file in the settings of my fileZilla. But I had no success in loging in.

any ideas what did I miss?

Best Answer

I use WinSCP instead of FileZilla to transfer files to/from my EC2 instance. Logging in with a PPK file is very simple. In addition, WinSCP provides a very nice GUI (I use the version that looks/acts like the regular Windows Explorer interface).

Note the PPK file is associated with the username and password from [Set2]. [Set1] simply connects you to a computer that has the credentials needed to access the EC2 instance. Since you transferred the *.pem (ssh private key) file, you should not need to use [Set1] anymore.

update:

Your developer may have configured your EC2 instance to only accept connections from bridge.hisdomain.com. Go to the AWS management console to see if that is the problem (Note the AWS account username and password are probably different than any of the passwords above):

  1. First, find out which security groups your EC2 instance is a member of.
  2. Then find out which inbound connections are allowed for those security groups.
  3. You need to find/add a rule that allows port 22(SSH) from your IP address.
  4. This source IP will allow all SSH requests from anywhere: 0.0.0.0/0.

Alternatively, you can try making an ssh connection from your local machine to figure how why the sftp connection is not working. Use Plink, the command-line version of Putty, with your PPK file and the -v option (for verbose.)


The process for using FileZilla with a PPK file seems quite convoluted. (Hint: you give your password to Pageant, not FileZilla! If you insist on using FileZilla, follow the instructions below:

Now run Pageant. In your system tray, you'll see the Pageant icon appear. Right-click the icon and select "Add Key" and select your private key (PPK) file. Follow the prompt to enter your pass phrase and you're done.

Now simply launch FileZilla and connect to your server using SFTP using SSH2 with a username and an empty password.

Related Question