ec2 code example
Example 1: ec2 download file
scp -i ec2key.pem username@ec2ip:/path/to/file .
Example 2: keep ec2 instance connected on command line
echo 'ClientAliveInterval 60' | sudo tee --append /etc/ssh/sshd_config
sudo service sshd restart