In this article I will show you how you can connect your Amazon Linux instance using SFTP which is running on EC2 service. I am assuming that you already have an EC2 instance running on Amazon Web Service or AWS and you know what Public DNS or Public IP is. Also I assume you have basic knowledge of handling FTP clients.
I am using FileZilla as the FTP client for this tutorial.
If you don’t have FileZilla installed you can download and install it from Official FileZilla Download Page.
- Run FileZilla
- Go to Edit > Settings > Connection > SFTP
- Click on Add Key File
- Browse the location where you have kept your .pem file you are using for logging in to your instance using SSH
- When you are prompted to “Convert” .pem file convert it to a SFTP compatible .putty file.
- Click on OK
- Open Site Manager (the left most icon on FileZilla menu bar)
- Put Amazon instance Public DNS or Public IP address in Host box
- Leave Port box empty
- Choose SFTP in Protocol dropdown
- Select “Normal” in Logon Type
- Type in ec2-user in User box. This is the default user for EC2 instance if you are running Amazon Linux. For Ubuntu instances, user will be ubuntu.
- Clear Password box
- Click on Connect.