When I tried to use ssh -i command telnet Ali cloud, encountered the following error:
Permissions for 'private-key.ppk' are too open. It is required that your private key files are NOT accessible by others. This private key will be ignored.
ssh version:
windows version:
Find a solution in this link:
:: Set Variable :: set key="C:\Code\DKOM\ProlikeService\sapdis.pem" :: 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%
After using the script ssh -i sapdis.pem [email protected]
successful login:
For more Jerry's original article, please pay attention to the public number "Wang Zixi":