# How to upload files to AWS ec2 using WinSCP

- Link: https://technotaught.com/how-to-upload-files-to-aws-ec2-using-winscp/
- Published: 2020-04-01T18:03:04+05:30
- Author: Ashishkumar Vishwakarma

In this tutorial, explain to you how to upload files to AWS ec2 using WinSCP Server
in order to facilitate file transfer to and from your Windows desktop.

With WinSCP you can easily upload and manage files on your Amazon EC2 (Elastic Compute
Cloud) instance/server over SFTP protocol.

Before starting you should require things to upload files to AWS ec2.

 * WinSCP
 *  information about your EC2 instance

Learn How to: – [Setting up Aws sign up || registration](https://technotaught.com/setting-up-aws-sign-up-registration/)

Learn How to: – [AWS ubuntu setup || launch an AWS EC2 Server](https://technotaught.com/aws-ubuntu-setup-launch-an-aws-ec2-server/)

## How to upload files to AWS ec2 using WinSCP

### Step 1: – Download WinSCP

Download WinSCP from [https://winscp.net](https://winscp.net/) for FTP access to
instance (file transfer to Virtual Machine).

![Download Winscp](https://technotaught.com/wp-content/uploads/2020/04/winscp.jpg)

### Step 2: – Install and Open WinSCP

Download WinSCP and install accordingly (choose double-pane view as recommended 
during installation).

![wiscp](https://technotaught.com/wp-content/uploads/2020/04/winscp-1.jpg)

### Step 3: – Login in WinSCP

Before login, we require Hostname: Check the Public DNS column on the Instances 
page of the Amazon EC2 console.

**Note **that the public DNS may change when an instance is restarted.

![instance](https://technotaught.com/wp-content/uploads/2020/03/aws-4.jpg)

Open WinSCP, Login Dialog prompt up:

 * Make sure to select a New site node.
 * Select an SFTP protocol in file protocol.
 * Enter ec2 instance Hostname in Hostname box.

 * User name differs with instance type:
    1. For **Amazon** Linux AMI, the username is **ec2-user**.
    2. For **Ubuntu** AMI, the username is **ubuntu**.

![upload files to AWS ec2](https://technotaught.com/wp-content/uploads/2020/04/winscp-
2.jpg)

### Step 4: – Advanced site setting

In the advanced window, click Authentication from the left pane, and specify the
location of .ppk file generated given below, click ok

![upload files to AWS ec2](https://technotaught.com/wp-content/uploads/2020/03/putty-
3.jpg)

![upload files to AWS ec2](https://technotaught.com/wp-content/uploads/2020/04/winscp-
3.jpg)

### Step 5: – Log in

Save your site settings using the Save button. Add host key to cache and proceed
with login.

![upload files to AWS ec2](https://technotaught.com/wp-content/uploads/2020/04/winscp-
4.jpg)

### Step 6: – Upload files to AWS ec2 Instance

 * The left side window is your PC window.
 * The right side window is your ec2 instance server window.

You can see I upload a “**list of exp.txt**“

![upload files to AWS ec2](https://i2.wp.com/technotaught.com/wp-content/uploads/
2020/04/winscp-5.jpg?fit=800%2C483&ssl=1)

### Step 7: – Verify / Access the content

 Verify/Access the content, after upload, in an instance.

![command prompt](https://technotaught.com/wp-content/uploads/2020/04/winscp-6.jpg)

You can access the command prompt by using putty.

Refer:- [How to connect ec2 instance using putty](https://technotaught.com/connect-ec2-instance-using-putty/)

Let us know in the comment section if you have any problem related to Connect ec2
instance using putty.

### Share this:

 * [  X ](https://technotaught.com/how-to-upload-files-to-aws-ec2-using-winscp/?share=twitter)
 * [  Facebook ](https://technotaught.com/how-to-upload-files-to-aws-ec2-using-winscp/?share=facebook)
 * [More](https://technotaught.com/how-to-upload-files-to-aws-ec2-using-winscp/#)

 * [  WhatsApp ](https://technotaught.com/how-to-upload-files-to-aws-ec2-using-winscp/?share=jetpack-whatsapp)
 * [  LinkedIn ](https://technotaught.com/how-to-upload-files-to-aws-ec2-using-winscp/?share=linkedin)
 * [  Email ](https://technotaught.com/how-to-upload-files-to-aws-ec2-using-winscp/?subject=%5BShared%20Post%5D%20How%20to%20upload%20files%20to%20AWS%20ec2%20using%20WinSCP&body=https%3A%2F%2Ftechnotaught.com%2Fhow-to-upload-files-to-aws-ec2-using-winscp%2F&share=email)
 * [  Reddit ](https://technotaught.com/how-to-upload-files-to-aws-ec2-using-winscp/?share=reddit)
 * [  Tumblr ](https://technotaught.com/how-to-upload-files-to-aws-ec2-using-winscp/?share=tumblr)
 * [  Pinterest ](https://technotaught.com/how-to-upload-files-to-aws-ec2-using-winscp/?share=pinterest)
 * [  Telegram ](https://technotaught.com/how-to-upload-files-to-aws-ec2-using-winscp/?share=telegram)
 * [  Print ](https://technotaught.com/how-to-upload-files-to-aws-ec2-using-winscp/#print?share=print)

### _Related_
