[EC2] Permission denied (publickey,gssapi-keyex,gssapi-with-mic). 해결

일단 해볼게·2022년 8월 20일

ssh를 이용해 EC2 서버에 접속하려다가 생긴 오류이다.

해결법

chmod 400 test_instance.pem

.pem 파일에 chmod로 권한 부여 후

ssh -i '파일명.pem' ec2-user@'퍼블릭 IPv4 주소'

ex) ssh -i test_instance.pem ec2-user@11.111.111.11


성공 !

profile
시도하고 More Do하는 백엔드 개발자입니다.

0개의 댓글