> For the complete documentation index, see [llms.txt](https://docs.happenn.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.happenn.com/for-dev/aws/ssh-and-ftp.md).

# SSH & FTP

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

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**.&#x20;

**<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:* [*https://www.putty.org/*](https://www.putty.org/)

### 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>
