[AWS EC2] Permission Denied - UNPROTECTED PRIVATE KEY FILE

2023. 11. 23. 22:09·개발 ━━━━━/Troubleshoot
반응형

새로운 EC2 인스턴스를 생성하고

발급 받은 pem key 로 SSH 접속을 하려고 하니

 

 

bad permissions 가 떴다.

 

내용을 읽어보니

"키 파일은 다른 사람이 접속할 수 없어야 한다" 는데

키 파일 접근 권한이 644로 되어 있나 보다.

 

chmod 400 {key file}.pem

 

로 권한 설정을 해주고 다시 접속하면 접속이 된다.

 

반응형

'개발 ━━━━━ > Troubleshoot' 카테고리의 다른 글

[Raspberry Pi] Docker-Compose 설치시 Building wheel for crytography (PEP 517) ... error  (1) 2023.12.08
[AWS EC2] EC2 서버 다운 / swap 파일 생성  (0) 2023.11.27
[AWS EC2] nohup: failed to run command 'java': No such file or directory  (2) 2023.11.25
[Docker] The requested image's platform (linux/arm64) does not match the detected host platform (linux/amd64/v3) and no specific platform was requested  (2) 2023.11.24
[SpringBoot] contextLoads() Failed  (2) 2023.09.27
'개발 ━━━━━/Troubleshoot' 카테고리의 다른 글
  • [AWS EC2] EC2 서버 다운 / swap 파일 생성
  • [AWS EC2] nohup: failed to run command 'java': No such file or directory
  • [Docker] The requested image's platform (linux/arm64) does not match the detected host platform (linux/amd64/v3) and no specific platform was requested
  • [SpringBoot] contextLoads() Failed
GukJang
GukJang
•  ⌘ ⌥ •
    반응형
  • GukJang
    SPACE
    GukJang
  • 전체
    오늘
    어제
    • Blog (73)
      • 개발 ━━━━━ (68)
        • Java (14)
        • C++ (1)
        • HTML (1)
        • Spring(boot) (7)
        • Dev (9)
        • SQL (1)
        • CS (2)
        • Git (1)
        • Troubleshoot (14)
        • Algorithm (2)
        • Definition (1)
        • Dev Life (2)
        • TIL (7)
        • 항해 (6)
      • 공돌 ━━━━━ (4)
        • 플젝 (2)
        • 장비 (1)
        • 부품 (1)
      • 독서 ━━━━━ (1)
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
    • 글쓰기
  • 링크

    • Github
  • 공지사항

  • 인기 글

  • 태그

    백준
    CI CD
    github actions
    docker
    항해99
    Python
    docker volume
    자바
    electron-builder
    spring
    EC2
    오픈소스 기여
    마이크로파이썬
    mysql
    Java
    micropython
    AWS
    사전 스터디
    SpringBoot
    알고리즘
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.0
GukJang
[AWS EC2] Permission Denied - UNPROTECTED PRIVATE KEY FILE
상단으로

티스토리툴바