[ssh-add] Permissions 0444 for '<private key 파일 경로>' are too open.

HYEOB KIM·2022년 4월 12일
0

Trouble Shooting

목록 보기
4/7

에러 메세지

ssh-add 명령을 실행하는 과정에서 아래의 에러메시지가 나타났습니다.

$ ssh-add <private key 파일 경로>
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0444 for 'hyeob-home-keypair.pem' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.

해결 방법

private key 파일의 권한 문제로 600으로 권한을 주면 해결됩니다.

$ chmod 600 <private key 파일 경로>

다시 ssh-add를 실행하면 성공적으로 등록됩니다.

profile
Devops Engineer

0개의 댓글