![]() ![]() pem file, and changed the user for AWS to ec2-user: scp -i sentiment.pem /Users/Toga/Desktop/sentimentlocalĪdded the option -i, referenced the. pem file: scp -i sentiment.pem /Users/Toga/Desktop/sentimentlocalĪdded the option -i, referenced the. Which returns: Permission denied (publickey).Īdded the option -i and referenced the. Now logged in, I run the a command to copy the remote directory to my local computer with: scp /Users/Toga/Desktop/sentimentlocal I then tried to SSH via terminal and was successful!! I updated the file permissions to: chmod 600 sentiment.pem Permissions 0660 for 'sentiment.pem' are too open. I updated the file permissions to: chmod 660 sentiment.pemĪfter the update, the permissions were set to: 1 Toga staff 1692 Feb 18 21:27 sentiment.pem It is recommended that your private key files are NOT accessible by others.īad permissions: ignore key: sentiment.pem Permissions 0644 for 'sentiment.pem' are too open. I then tried to SSH via terminal and received the following: WARNING: UNPROTECTED PRIVATE KEY FILE! pem file, its permissions were set to, I THINK: 0644 1 Toga staff 1692 Feb 18 21:27 sentiment.pem SSH: ssh -i sentiment.pem from remote to local computer with: scp /Users/Toga/Desktop/sentimentlocalĪfter I initially downloaded the. Or do I need to change the file permission twice - once for SSH and another for SCP after I login? Is there one specific file permission needed for the. Throughout the process I experience different file permission errors (noted below). I have tried to SSH into my AWS Ubuntu server and copy the directory to my local machine. ![]()
0 Comments
Leave a Reply. |