$scp [[-r]] -i:keypairsourceubuntu@ec2-public-hostnamedest
keypair and ec2-public-hostname are the same as above. source is the path to the local file or directory you want to copy, and dest is the destination path on the EC2 node. Use the -r option if you are copying a directory.