warning unprotected private key file problem on aws instance

C++
add sudo before ssh and then execute
sudo ssh -i "ma.pem" [email protected]


Source

Also in C++: