AWS Architect Certification Training
- 81k Enrolled Learners
- Live Class
We have seen in our previous blog the step by step guide to transfer the files from your Windows PC to Cloudera Demo VM. In continuation to that blog, we shall see how to Transfer files from Windows to Amazon EC2 instance.
For this also we require an FTP (File Transfer Protocol) software such as FileZilla. There are multiple methods to connect to AWS EC2 instance (or server), one of them is public/private key pair method. This blog describes the step by step procedure to transfer the files using Public/Private Key pair.
Download and Install the FileZilla for the Windows Operating System from the below link:
Open the FileZilla. The following screen will appear:
To establish the connection we need the following four parameters:
Hostname: Public ID (hostname) of Amazon EC2 instance.
Username: The username of the AWS EC2 server. By default it is ‘ubuntu’.
Password: AWS Cluster do not have any password. It only uses keys.
Port Number: The port number to access the file transfer service on the Cloudera Demo VM.
As it is a SSH connection, use the port number ‘22’.
Below are the values of the AWS EC2 instance:
Password: ‘Blank’ as AWS EC2 uses Key based authentication
Port Number: 22
Edit these parameters in FileZilla fields as shown in the following image.
Now, specify the private key file (.ppk) to connect to the corresponding respective cluster server.
Click on Edit -> Settings, you will find the below screen:
Click on SFTP and select option Add Key file as highlighted in the below image.
Select the location where your key (.ppk file) is present and click ‘OK’. Click on the ‘Quickconnect’ button in FileZilla.
Once connected to the instance, right Pane of your FileZilla GUI will list the directory structure of your Amazon EC2 cluster instance as shown in the following image:
The remaining steps are similar as we have done in our previous blog.