I am trying to use my Mac Terminal to scp a file from Downloads (phpMyAdmin I downloaded online) to my Amazon EC2 instance
The command I used was:
scp -i demo.pem phpMyAdmin-3.4.5-all-languages.tar.gz [email protected]:~/.
The error I got: Warning: Identity file demo.pem not accessible: No such file or directory. Permission denied (publickey). lost connection
Both my demo.pem and phpMyAdmin-3.4.5-all-languages.tar.gz are in Downloads, so then I tried
scp -i /Users/Demo/Downloads/demo.pem /Users/Demo/Downloads/phpMyAdmin-3.4.5-all-languages.tar.gz [email protected]:~/.
and the error I got: Warning: Identity file /User/Demo/Downloads/demo.pem not accessible: No such file or directory. Permission denied (publickey). lost connection
Can anyone please tell me how to fix my problem?