Connect to Amazon EC2 file directory using Filezilla and SFTP

How to (S)FTP into your EC2 instance

In this tutorial, it will be explained how to connect to AWS EC2 instances using SFTP in FileZilla.

SFTP stands for Secure File Transfer Protocol, but it is also known as SSH File Transfer Protocol. When connecting to a server in the cloud, you typically need to use SFTP. This is not really difficult, it just requires a few more steps than needed using FTP.

Before you will be able to connect to your instance, you will first need the following:

  • The keyfile you created when launching your instance
  • The Public DNS for your instance
  • Username and Password
  • You might also need to convert your .pem keyfile to a format that FileZilla accepts.

Connecting to your AWS EC2 instance using SFTP

In FileZIlla, open from menu Edit > Settings > Connection > SFTP > Add keyfile…

You will be asked to convert key to other format, agree with OK.

Exit settings.

Go to Site manager.
As Host enter your Public DNS from EC2 management console > Instances > Description. Choose SFTP – SSH File Transfer Protocol, input user ubuntu, which is default on Ubuntu AMIs (or whatever is your username after you logon to EC2 instance) and click connect.

You may be prompted to accept public key, that is all.

File permissions for .ppk file and it’s folder

Here you can also see the video

 

Thank you.

Leave a Reply

css.php