1. I’m posting this to organize and record what I learned while struggling through this early on.
  2. What you’ll need:
    • Install putty
    • A .ppk file or a .pem file (on a Mac you need to convert the .ppk file to a .pem file - described below)
    • The IP information of the server you want to access.

Getting Started

$ brew install putty

If brew is not installed, install brew first and then install putty

$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ puttygen [file name].ppk -O private-openssh -o [file name].pem
$ chmod 700 [fime name].pem
$ ssh -i [file name].pem ubuntu@ip-address

Transferring a single file

$ scp -i [pem file name] [name of file to upload] [user id]@[ip-address]:~/
$ scp -i example.pem example.py ubuntu@100.1.1.1:~/

Transferring an entire folder

$ scp -i [pem file name] -r [name of folder to upload] [user id]@[ip-address]:~/
$ scp -i example.pem example ubuntu@100.1.1.1:~/