Using Filezilla to login into Amazon EC2 instance and transfer files

We can login into Amazon EC2 instance using Filezilla FTP client for simple transfers of local files.
Following are the steps:

1. Download and install Filezilla client.
2. Goto Filezilla settings(Windows) or Filezlla preferences (MAC)
3. Click on SFTP, on right side, click on add key file.












4. Select your .pem file. It will prompt you to convert into PPK file.











5. Click ok to close the settings/preferences window.
6. Open site manager, create a new site as show in the image below.
Host: your AMI address
ServerType: SFTP
Logon Tpe: Normal
User: ec2-user
No password required ! Filezilla will read through the keys and find the right key for the user/server pair that you are connecting to.

19 comments:

  1. Just what I was looking for. Thanks a lot!

    ReplyDelete
  2. thank you very much, this is what I expected!!!!!

    ReplyDelete
  3. once i'm in, i wonna be root? how to do so? or how can i log in as root?

    ReplyDelete
  4. Hi Anas,
    Thank you for the comment. Sorry, I dont know how to be the root thru filezilla.
    I usually give permissions to ec2-user to a desired folder thru command line.

    Cheers !

    ReplyDelete
  5. Cheers, perfect, simple, to the point

    ReplyDelete
  6. thanks for the post
    but im unable to get the files through amazon

    ReplyDelete
  7. Thanks man. You did a good job by writing this.

    ReplyDelete
  8. Hey, I had great trouble with this article, but it led me in the right direction. I wanted to add this fact: he means to click the AMI ID and then scroll down on the bottom half until you see "Public DNS:"... THAT is the code yuo need to connect =)... Just logged in myself!

    ReplyDelete
  9. Thanks Halfbreed... I will update the post soon with your info. ! :)

    ReplyDelete
  10. Thanks for nice simple instructions!

    ReplyDelete
  11. Amazing man, thank you very much.

    ReplyDelete
  12. Many thanks - saved a lot of time!

    ReplyDelete
  13. Hi,
    I had successfully created connection with EC2 by Filezilla. But I am not able to change or upload file to EC2. Is this require extra efforts?

    ReplyDelete
  14. HI,
    I'm not being able to create a connection to the EC2 instance.

    I'm running FileZilla 3.11.0.2
    I'm running filezilla on my mac (Yosemite)
    I have specified my Amazon key pair in the filezilla settings under SFTP
    I have entered in my host using my public DNS (Elastic IP)
    I have specified the user to be ec2-user. (Tried with ubuntu and root also)
    I have opened up ports 22 for SSH on my amazon security groups for 0.0.0.0/0.
    I also tried with opening all ports for 0.0.0.0/0

    Status: Connecting to ec2-###-###-###-###.us-west-1.compute.amazonaws.com...
    Response: fzSftp started, protocol_version=2
    Command: keyfile "/Users/MS/Documents/AWS/amazon.ppk"
    Command: open "ec2-user@ec2-###-###-###-###.us-west-2.compute.amazonaws.com" 22
    Error: Connection timed out
    Error: Could not connect to server

    Are there any suggestions as to what may be blocking my connection?? have spent about 4 hours now trying to get this to work - has to be something simple that I'm missing?
    Thanks for any suggestions.

    ReplyDelete

Python contextlib for Timing Python code

If you've ever found yourself needing to measure the execution time of specific portions of your Python code, the `contextlib` module o...