Filezilla Aws Ec2

Posted onby admin

How to transfer files between your computer and amazon ec2 instance or easy ways to transfer files with amazon ec2 instance or How to transfer files with amazon ec2 instance

Filezilla Aws Ec2 Certification

If you have created an ec2 instance then obviously you are going to transfer files that may be your project files or some other files between your computer and the amazon ec2 instance. There are various ways to accomplish this task. I will be going through some of these ways, so let start the very first one.

If you are using Linux/Unix/Mac system in your computer then you can use a command-line tools “scp” which stands for “secure copy” to transfer files from your computer to ec2 instance.

Using scp to transfer(upload) files from Linux/Unix/Mac

So following is the simple command to upload your files from your computer to the amazon ec2 instance

Open filezilla application and click on menu File - Site Manager (⌘S), as shown in the below image: Select Protocol as STP – SSH File Transfer Protocol. Enter your Host address. To connect to a running Amazon EC2 instance with Filezilla: Edit - Settings - Connection - SFTP; Click 'Add keyfile.' Browse to the location of your.pem file and select it. A message box will appear asking your permission to convert the file into a supported format. Click Yes, then give the file a name and store it somewhere safe. Open filezilla application and click on menu File - Site Manager (⌘S), as shown in the below image: Select Protocol as STP – SSH File Transfer Protocol. Enter your Host address.

This command basically uploads a file index.php from your Desktop to a directory myproject in the amazon ec2 instance. In this case also you have to authenticate yourself by using your private key, which has been give to your during ec2 instance creation.

Download

Using scp to transfer(download) files from Amazon Ec2 instance

In the same way as you have uploaded your file, your can download a file from your amazon ec2 instance to your local computer too. For that you simply have to follow the following command

So in this case a file index.php will be downloaded from a directory myproject(residing in your ec2 instance) to your local machine Desktop. Here in the above command [email protected]: refers to username@public_dns

Aws sftp username and password

Note: If you are using Ubuntu then the username will be ubuntu

Using pscp to transfer(upload) files from Windows

To upload a file from your windows computer to your amazon ec2 instance you have to type the following command in your command line interface.

So this command will upload a file index.php from your C: drive to a directory myproject in your ec2 instance.

Using pscp to transfer(download) files from Windows

To download a file from your amazon ec2 instance to your windows computer you have to type the following command in your command line interface.

So this command will download a file index.php from a directory named “myproject” in your amazon ec2 instance to a directory named “mydata” in the C: drive of your local computer.

AwsAws

So far I have discussed how to upload or download files to or from amazon ec2 instance using the command line interface, which may seems to be little bit complex. So in this step I am going to show you how to do the same thing using a GUI based file transfer protocol application like the most popular FileZilla Using FileZilla to transfer data between your client computer to amazon ec2 instance So if you have FileZilla installed, it’s nice otherwise you can download it from filezilla-project.org and install it. Filezilla is available for Windows/Linux/Mac OS. After the installation is completed, open FileZilla and


click on Settings(Windows version) then click SFTP. Click on Edit then Settings and then SFTP(if Linux version).



After selecting SFTP click on Add keyfile to add the private key given by amazon during ec2 instance creation.

Once you click on open you will be prompt to save you uploaded .pem file to .ppk file, because the .pem file given by amazon is not supported by FileZilla. Hence it needs to be converted to .ppk file, so click Yes in the Convert keyfile pop-up

Filezilla Aws Ec2 Download

Filezilla Aws Ec2

After clicking Yes you have to save your new file assigning a name to it. Make sure the file extension is .ppk and then click Save
Once you hit Save. You will find that the key has been added.

Filezilla Aws Ec2 Tutorial

Put the Amazon public-dns like ec2-54-166-128-20.compute-1.amazonaws.com in the “Host” box. Set “Protocol” as “SFTP”, “Logon Type” as “Normal”, “User” as “ubuntu” if you are using ubuntu, make sure port is 22 and leave “Password” as blank. Then click “Connect”.

After clicking connect, your will find something as follows:

How To Use Filezilla


if you find such response from the server, then congratulation you are now connected to the amazon ec2 instance. Thank you....