SSH - Secure shell to instance

  1. Create key pair in AWS Console and download it
    1. Suggested saved location C:\TradeMe\Identities\carl-key-pair.pem
  2. Load .pem key, using PuTTYgen
    1. Save private key, suggested location C:\TradeMe\Identities\carl-key-pair.ppk
  3. Run Pageant
    1. From the system tray Add key and select the ppk file
    2. You should now be able to SSH using PuTTY
  4. In AWS Console enable inbound traffic in security group
1
SSH   TCP   22   0.0.0.0/0
  1. Connect
1
2
ec2-user@ec2-xx-xxx-xxx-xxx.ap-southeast-2.compute.amazonaws.com
root@ec2-xx-xxx-xxx-xxx.ap-southeast-2.compute.amazonaws.com
  1. Running commands on the instance
1
2
3
4
5
sudo yum install -y ecs-init
sudo service docker start
sudo start ecs

tail -f /var/log/esc/esc-agentlog.YYYY-MM-DD

References