Answers for "pem file is too open"

2

Load key ".pem": bad permissions

chmod 400 ~/.ssh/mykeyfile.pem
Posted by: Guest on May-07-2020
0

pem file is too open

:: # Set Variable:
   Cmd /c Set Key="C:\Path\to\keyfile"

:: # Remove Inheritance:
   Cmd /c Icacls %Key% /c /t /Inheritance:d

:: # Set Ownership to Owner:
   Cmd /c Icacls %Key% /c /t /Grant %UserName%:F

:: # Remove All Users, except for Owner:
   Cmd /c Icacls %Key% /c /t /Remove Administrator "Authenticated Users" BUILTIN\Administrators BUILTIN Everyone System Users

:: # Verify:
   Cmd /c Icacls %Key%
Posted by: Guest on May-22-2021

Browse Popular Code Answers by Language