내가 만난 그 에러!!!!
🖥 접속방법
ssh -i [key 위치/[key name.pem]ec2-user@[IP주소]
❓Case 1:
Permanently added 'XX.XXX.XX.XXX' (ECDSA) to the list of known hosts.
✔️Solution1:
ssh-keygen -R [ IP || DomainName]
❓Case2:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0664 for '/Users/hayeong/Desktop/key/hgughost.pem' are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key "/Users/hayeong/Desktop/key/hgughost.pem": bad permissions
ec2-user@XX.XXX.XX.XXX: Permission denied (publickey).
✔️Solution2:
chmod 600 [key name.pem]
❓case3: key가 있는 디렉토리의 이름이 한글일 경우, 접속이 안되는 경우도 있다.
✔️Solution3: 디렉토리명을 영어로 바꾼다!!!
에러 싫어! 🍒