Server/Linux

AWS ec2 원격접속, ssh -i pem 키 오류

Juzdalua 2022. 1. 17. 15:32

zsh에서 pem키를 활용해 AWS ec2 인스턴스로 원격접속시 다음과 같은 에러가 발생했다.

 

It is required that your private key files are NOT accessible by others.
This private key will be ignored.

 

pem키만 옮겨 다른 컴퓨터에서 진행했는데, 방법은 매우 간단하다.

 

chmod 400 KEY_NAME.pem

키가 위치한 경로에서 실행하면 해결된다.