기타

[Git] git clone 시 bad permissions 발생하는 현상 해결

Bonita SY 2020. 9. 17. 19:51
728x90
반응형
$ git clone git-repo@아이피:레포지토리명

Cloning into '레포지토리명'...
The authenticity of host '아이피 (아이피)' can't be established.
RSA key fingerprint is SHA256: --- .
RSA key fingerprint is MD5: --- .
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '아이피' (RSA) to the list of known hosts.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0664 for '/home/사용자아이디/.ssh/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 "/home/사용자아이디/.ssh/id_rsa": bad permissions
git사용자@아이피's password:

아니 잘만 쓰던 깃이 저렇게 에러를 뱉길래 무엇이 문제일까 하고 막막했는데

 

역시 똑똑한 사람들은 많아.

 

Permissions 0664 for '/home/${userid}/.ssh/id_rsa' are too open.

 

chmod 400 프라이빗키

 

하면 된다!!

 

 

https://www.deok.me/entry/SSH-%ED%82%A4-%EC%9D%B4%EC%9A%A9-%EC%8B%9C-bad-permissions-ignore-key-%EC%97%90%EB%9F%AC%EA%B0%80-%EB%B0%9C%EC%83%9D%ED%95%A0-%EA%B2%BD%EC%9A%B0

728x90
반응형