OS/Linux&Unix

WARNING: UNPROTECTED PRIVATE KEY FILE! @

태하팍 2021. 3. 12. 11:16
반응형

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Permissions 0644 for '어쩌구@example.com/id_rsa' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "어쩌구@example.com/id_rsa": bad permissions
ubuntu@example.com: Permission denied (publickey).

chmod로 이것저것 바꾸다가 위와 같은 에러가 발생 했다.

chmod 0600 ~/.ssh/어쩌구@example.com/id_rsa 를 통해 권한을 변경한다.
chmod 0600 ~/.ssh/config
chmod 0700 ~/.ssh/어쩌구@example.com
반응형