Transfer files from Windows to AWS EC2 instance6 min read

Introduction to AWS EC2

AWS stands for Amazon Web Services & EC2 is the abbreviation of Elastic Compute Cloud which is a web service provided by Amazon to make computing on the cloud more accessible to the developers. EC2 provides secure, resizable compute capacity. It is very easy to configure EC2 with Amazon Web Services as they provide a friendly web interface with minimal options. You have complete control over your computing resources and the services you use on AWS are reliable as they run on tried and trusted computing environment. If you are interested in an overview of (Amazon EC2) and its features & functionalities click here. In this article, we will learn how to transfer the files from Windows to AWS EC2 instance.

Benefits

In the AWS Cloud, Amazon Elastic Compute Cloud (Amazon EC2) offers scalable computing power. Using Amazon EC2 removes the need for bare metal machines which allows you to build and deploy applications way more quickly. Amazon EC2 allows you to create as many virtual servers as you like, as well as configure protection and networking and manage storage.

This tutorial assumes that you already know to connect to an EC2 instance. If you are a beginner to this developer world don’t worry we have got you covered. Check our article on how to connect to an EC2 instance with simple & easy instructions.

Transfer files from Windows to EC2 instance

There are two ways in which you can transfer the files/folders from your local system to AWS EC2 instance or any other cloud instance. They are as below,

  1. Using SCP
  2. Using FTP client

File Transfer using SCP

SCP stands for Secure Copy Protocol. The name says all. The SCP command is used to transfer the files securely from your local system to cloud instance/remote host or vice versa and also between 2 different remote hosts. The only catch is that your systems should be able to communicate/ping with each other. We will see all the commands that SCP provides to transfer the files/folders below

1. Transfer from local system to remote host

scp -r /path/to/file/in/local [email protected]:/path/in/remote/host

Note: If you are transferring the files from Windows to the remote host, you need to install an application that provides an environment to run Linux commands. You can use a tool such as Git Bash.

2. Transfer from remote host to local system

scp -r [email protected]:/path/to/file/in/remote/host /path/in/local/system

3. Transfer files between 2 remote hosts

scp -r [email protected]:/path/to/file [email protected]:/destination/path

File Transfer using FTP client

You can transfer files from Windows to AWS EC2 instance using an FTP (File Transfer Protocol) client such as FileZilla. FileZilla is a free-to-use and open-source software that is used to transfer files between two computers. The FileZilla FTP client is available to download for both Windows and Linux OS.

Follow the below steps to transfer the files from Windows to AWS EC2 instance using FileZilla:

1. Download FileZilla and install it.

2. Open FileZilla -> Edit -> Settings -> Connection -> SFTP -> Add key file.

Downloading Filezilla & installing it to transfer files from Windows to AWS EC2 instance

3. Add the .ppk file here which you use to connect to your instance,

Adding the .ppk file here which you use to connect to your AWS EC2 instance

4. File -> Site Manager..

Tutorial on transfer of files from Windows to AWS EC2 instance

5. ..-> New Site -> give a name to the site -> make the settings as shown in the below screenshot,

Tutorial on transfer of files from Windows to AWS EC2 instance
Tutorial on transfer of files from Windows to AWS EC2 instance

6. Connect to your cloud instance through putty or Git Bash, create a directory and provide permission to it,

mkdir sourceCode
chmod -R 777 sourceCode

7. In FileZilla, refresh and you will be able to see the newly created directory.

8. Now just drag and drop the files from left pane to the right pane to transfer them from local system to cloud instance,

transfer files from windows to aws ec2 instance

Similarly, drag-drop files from right pane to the left to transfer the files from cloud instance to your local system.

9. On successful completion, you will see a screen like below,

10. Check the files through terminal,

cd sourceCode/
ls

Done. We have successfully transferred the files from Windows to AWS EC2 instance.


Share:

Comments

Kurt Guntheroth

Could you really check if tools like Duplicati and Gs Richcopy 360 have effective options to throttle the connection while transferring from windows server to AWS S3 ?? this is important for me and I don’t have the experts knowledge to try

Leave a Reply