SSH & FTP
How to SSH to AWS server and using .pem file with FTP
Last updated
How to SSH to AWS server and using .pem file with FTP
Last updated
To be able to SSH to the server, you need to know the server's IP or Public DNS and .pem file.
You can download the pem file from the Google Drive in happenn > server keys folder.
For Windows, you can use PuTTY or Command Prompt.
For MacOS, you can use Terminal
For Command Prompt and Terminal
happenn-v2-launch.pem - where is the pem file locate relative to current folder (in this case, the file is in the same folder as the Command Prompt or Terminal.
ubuntu@ec2-52-220-229-210.ap-southeast-1.compute.amazonaws.com - is <user>@<Public DNS>. To can be locate in AWS >EC2 > Instances. Select the instance you want to access to. Then, Details > Instance summary > Public IPv4 DNS. For user, ubuntu is a default user for every instance.
download:
Open PuTTYgen. (This come installed with PuTTY)
Click on Load.
Select the pem file. (You may need to change filter extension from .ppk to All files)
Click Save private key. (No need change any parameters)
This will create .ppk file.
Open PuTTY.
On Host Name enters ubuntu@<IP>. The IP can be found at AWS > EC2 > Instances. Then select instance that you want the IP and copy Public IPv4 address.
On Category of the left side of PuTTY. Select Connection > SSH > Auth.
Browse ppk file on Private key file for authentication.
Select back to Session on the left side and click Open.
This configuration can be save via Save button at Session view.
Protocol - SFTP
Host - <IP>
Port - <Blank> or 22
Logon Type - Key file
User: root
Key file: <ppk file location>