upload file to ec2 from ssh code example
Example: upload a file to ec2 instance
$scp -i ~/Desktop/amazon.pem ~/Desktop/MS115.fa ubuntu-54-166-128-20.compute-1.amazonaws.com:~/data/
$scp -i ~/Desktop/amazon.pem ~/Desktop/MS115.fa ubuntu-54-166-128-20.compute-1.amazonaws.com:~/data/