-
oracle cloud ssh - private key files are Not accessible by others 에러web 프로그래밍/기타 2022. 4. 18. 23:54
It is required that your private key files are NOT accessible by others.
전체 에러 구문은 아래와 같습니다.
Permissions 0644 for 'ssh-key-2022-04-18.key' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "ssh-key-2022-04-18.key": bad permissions
opc@xxx.xxx.xxx.xxx: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
오라클 클라우드 프리티어 작업중 ssh private 키를 받아서 연결하는데 위와같은 에러가 나타났습니다.
키는 제대로 받았는데 무슨 문제인가 싶어서 찾아보니 리눅스 파일 사용자 권한문제네요.
(자세히 보니까 권한이 0644로 되어있는게 문제라고 알려주고 있었네요 ^^;)
chmod 로 400번 주면 해결됩니다.
chmod 400 ./{key_name}
{key_name} 에 ssh 에 사용할 키 이름을 입력해주면 됩니다.
'web 프로그래밍 > 기타' 카테고리의 다른 글
NginX 배포 경로 설정 및 URL 직접 입력시 페이지 찾을 수 없는 문제 (0) 2023.01.09 윈도우 방화벽 열기 (0) 2023.01.09