$
scp [[-r]] -i
:keypair
source
ubuntu@ec2-public-hostname
dest
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.