$ cd ~
$ cp /cygdrive/c/Users/JohnSmith/Downloads/cs184-john-stanford-edu.pem .
$ chgrp Users cs184-john-stanford-edu
$ chmod 400 cs184-john-stanford-edu.pem
$ ssh -i cs184-john-stanford-edu.pem \
ubuntu@ec2-50-19-140-229.compute-1.amazonaws.com
# 1) install heroku and git
$ sudo apt-get install -y git-core
wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh
$ which git
$ which heroku
# 2) Login and set up your SSH keys
$ heroku login
$ ssh-keygen -t rsa
$ heroku keys:add
# 3) Clone a sample repo and push to heroku
$ git clone https://github.com/heroku/node-js-sample.git
$ cd node-js-sample
$ heroku create
$ git push heroku master