Happenn
  • Introduction
  • System Architect
  • For Dev
    • AWS
      • Domain & CNAME
      • Rescale Instance
      • Request AWS Certificate
      • Generate Certificate with Certbot
      • S3
      • SSH & FTP
      • Auto Scaling
      • RDS MySQL
    • Digital Ocean
      • Virtual Host & Certificate
      • SSH & FTP
    • Server
      • Git
      • Setup the Server
    • Code
      • Laravel/Lumen
      • Vue.js
      • Webpack
      • JavaScript Library
        • Lodash
        • axios
        • Moment.js
      • Code Style Guide
      • Useful Tools
    • HAM Admin
      • Install locally
      • Deploy
    • Happenn API
      • Install locally
      • Install DB locally
      • Make DB changes
    • Happenn IO
      • Install locally
    • Happenn Virtual
      • Install locally
      • Folders and file structure
      • Deploy code
        • Happenn AWS
        • Delegia AWS
    • Happenn Event app
      • Deploy
      • Install locally
Powered by GitBook
On this page
  • Command Prompt & Terminal
  • PuTTY (For Windows)
  • Generate .ppk file from .pem file
  • Using .ppk file
  • FTP - FileZilla
  1. For Dev
  2. AWS

SSH & FTP

How to SSH to AWS server and using .pem file with FTP

PreviousS3NextAuto Scaling

Last updated 4 years ago

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

Command Prompt & Terminal

For Command Prompt and Terminal

$ ssh -i "happenn-v2-launch.pem" ubuntu@ec2-52-220-229-210.ap-southeast-1.compute.amazonaws.com

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.

PuTTY (For Windows)

download:

Generate .ppk file from .pem file

  1. Open PuTTYgen. (This come installed with PuTTY)

  2. Click on Load.

  3. Select the pem file. (You may need to change filter extension from .ppk to All files)

  4. Click Save private key. (No need change any parameters)

  5. This will create .ppk file.

Using .ppk file

  1. Open PuTTY.

  2. 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.

  3. On Category of the left side of PuTTY. Select Connection > SSH > Auth.

  4. Browse ppk file on Private key file for authentication.

  5. Select back to Session on the left side and click Open.

  6. This configuration can be save via Save button at Session view.

FTP - FileZilla

  • Protocol - SFTP

  • Host - <IP>

  • Port - <Blank> or 22

  • Logon Type - Key file

  • User: root

  • Key file: <ppk file location>

https://www.putty.org/