rjurney / Agile_Data_Code_2

Code for Agile Data Science 2.0, O'Reilly 2017, Second Edition
http://bit.ly/agile_data_science
MIT License
456 stars 306 forks source link

WARNING: UNPROTECTED PRIVATE KEY FILE! #98

Closed thelastmor closed 5 years ago

thelastmor commented 5 years ago

Hello I am using windows bash. when I execute ec2_create_tunnel.sh I get: WARNING: UNPROTECTED PRIVATE KEY FILE!
Permissions 0777 for './agile_data_science.pem' are too open. It is required that your private key files are NOT accessible by others. This private key will be ignored. Load key "./agile_data_science.pem": bad permissions ubuntu@ec2-18-228-118-16.sa-east-1.compute.amazonaws.com: Permission denied (publickey).

rjurney commented 5 years ago

Change your permissions on the key file to only be readable by your user.

On Fri, Dec 28, 2018 at 9:13 AM thelastmor notifications@github.com wrote:

Hello I am using windows bash. when I execute ec2_create_tunnel.sh I get: WARNING: UNPROTECTED PRIVATE KEY FILE! Permissions 0777 for './agile_data_science.pem' are too open. It is required that your private key files are NOT accessible by others. This private key will be ignored. Load key "./agile_data_science.pem": bad permissions ubuntu@ec2-18-228-118-16.sa-east-1.compute.amazonaws.com: Permission denied (publickey).

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rjurney/Agile_Data_Code_2/issues/98, or mute the thread https://github.com/notifications/unsubscribe-auth/AACkpUIammCBSyakU5Px5Bs11Bv6Txnvks5u9lEvgaJpZM4ZkDVt .

-- Russell Jurney @rjurney http://twitter.com/rjurney russell.jurney@gmail.com LI http://linkedin.com/in/russelljurney FB http://facebook.com/jurney datasyndrome.com

thelastmor commented 5 years ago

please how do I do that on windows bash? I am not a developper so can you give me a detailed solution

rjurney commented 5 years ago

chmod 0600 agile_data_science.pem

On Sat, Dec 29, 2018 at 4:27 PM thelastmor notifications@github.com wrote:

please how do I do that on windows bash? I am not a developper so can you give me a detailed solution

— You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub https://github.com/rjurney/Agile_Data_Code_2/issues/98#issuecomment-450530679, or mute the thread https://github.com/notifications/unsubscribe-auth/AACkpX7v5pth8u8C2XC9vEEjZ6W_1Bbgks5u-Ah_gaJpZM4ZkDVt .

-- Russell Jurney @rjurney http://twitter.com/rjurney russell.jurney@gmail.com LI http://linkedin.com/in/russelljurney FB http://facebook.com/jurney datasyndrome.com

thelastmor commented 5 years ago

I am on bash windows it doesn't work!

rjurney commented 5 years ago

Can you try to change permissions using the Windows file system?

Russell Jurney @rjurney http://twitter.com/rjurney russell.jurney@gmail.com LI http://linkedin.com/in/russelljurney FB http://facebook.com/jurney datasyndrome.com

On Sun, Dec 30, 2018 at 2:27 PM thelastmor notifications@github.com wrote:

I am on bash windows it doesn't work!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/rjurney/Agile_Data_Code_2/issues/98#issuecomment-450590990, or mute the thread https://github.com/notifications/unsubscribe-auth/AACkpY-5eIXdNijqLSjF-OBoYvsfuXM5ks5u-T21gaJpZM4ZkDVt .

rjurney commented 5 years ago

Oh, also: try 'sudo chmod 0600 ./agile_data_science.pem'

Russell Jurney @rjurney http://twitter.com/rjurney russell.jurney@gmail.com LI http://linkedin.com/in/russelljurney FB http://facebook.com/jurney datasyndrome.com

On Sun, Dec 30, 2018 at 4:15 PM Russell Jurney russell.jurney@gmail.com wrote:

Can you try to change permissions using the Windows file system?

Russell Jurney @rjurney http://twitter.com/rjurney russell.jurney@gmail.com LI http://linkedin.com/in/russelljurney FB http://facebook.com/jurney datasyndrome.com

On Sun, Dec 30, 2018 at 2:27 PM thelastmor notifications@github.com wrote:

I am on bash windows it doesn't work!

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/rjurney/Agile_Data_Code_2/issues/98#issuecomment-450590990, or mute the thread https://github.com/notifications/unsubscribe-auth/AACkpY-5eIXdNijqLSjF-OBoYvsfuXM5ks5u-T21gaJpZM4ZkDVt .

thelastmor commented 5 years ago

when I keep only administrator access i get this: sara@DESKTOP-4QT3OS1:/mnt/c/simpleagile$ Load key "./agile_data_science.pem": Permission denied ubuntu@ec2-18-228-118-16.sa-east-1.compute.amazonaws.com: Permission denied (publickey). Load key "./agile_data_science.pem": Permission denied ubuntu@ec2-18-228-118-16.sa-east-1.compute.amazonaws.com: Permission denied (publickey). Load key "./agile_data_science.pem": Permission denied ubuntu@ec2-18-228-118-16.sa-east-1.compute.amazonaws.com: Permission denied (publickey).

rjurney commented 5 years ago

I'm sorry, I don't know Windows :(