How to upload files and folders to AWS EC2 instance?

amazon-ec2, amazon-web-services

Solution

Just to add a bit more detail to the scp command (included in OSx and most linux/unix):

scp -i myssh.pem local_file username@200.200.200.200:/home/username

Obviously - replace the pem file with the one used for ssh access. Obviously replace "username" and "200.200.200.." with valid values for your setup.

Problem

I use SSH to connect to my Ubuntu instance. With SSH I can administer files and folders on the instance, but how do I upload files and folders from my local machine to the instance? Is it possible to do right from SSH session, without using SFTP clients?

Original source