unprotected private key file code example
Example 1: WARNING: UNPROTECTED PRIVATE KEY FILE!
sudo chmod -R 700 file_name.key
Example 2: WARNING: UNPROTECTED PRIVATE KEY FILE
sudo chmod 600 ~/.ssh/id_rsasudo chmod 600 ~/.ssh/id_rsa.pub
Example 3: warning unprotected private key file problem on aws instance
add sudo before ssh and then execute
sudo ssh -i "ma.pem" [email protected]
Example 4: Unprotected private key file
ssh -i ~/.ssh/<name of your key> <username>@<ip address>
Example 5: Unprotected private key file
sudo chmod 600 ~/.ssh/<your key's name>
Example 6: Unprotected private key file
cp <path to your key> ~/.ssh/<name of your key>