i have a problem in uploading the folder from my laptop to my instance on amazon. i tried a lot of commands in my local machine like
sudo scp -i my_key.pem -r my_folder/path public_DNS:home/ec2-user/new_folder/
but got every time i tried this line
Please login as the user "ec2-user" rather than the user "root".