解決windows10中ssh(OpenSSH_for_Windows)遠程登錄時報Permissions for "xxx" are too open錯誤

ssh -i .\xxx.pem root@地址
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions for '.\\xxx.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 ".\\xxx.pem": bad permissions
root@地址: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).

解決:

xxx.pem文件->屬性->安全->高級->所有者改成當前操作用戶->權限條目刪除所有並添加當前操作用戶

參考:

https://www.jianshu.com/p/629bf7a09a3d

https://www.jianshu.com/p/0bd91d523750

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章