본문 바로가기
DevOps

[error] Windows SSH: Permissions for 'private-key' are too open

by DEV Lee 2021. 2. 27.

윈도우 환경에서 AWS에 연결하려고 하니 WARNING이 뜨며 다음과 같은 에러가 났다.

@@@@@@@@@@@@@@@@@@@@

@Permissions for 'xxx.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 "xxx.pem": bad permissions

xxx@xxx: Permission denied

 

 

아래 사이트를 보며 에러를 해결했다.

superuser.com/questions/1296024/windows-ssh-permissions-for-private-key-are-too-open

 

Windows SSH: Permissions for 'private-key' are too open

I've OpenSSH 7.6 installed in Windows 7 for testing purposes. SSH client & server work just fine till I tried to access one of my AWS EC2 box from this windows. It seems like I need to change ...

superuser.com

pem 파일>속성>보안>고급

 

에서 USER만 삭제해주면 된다.

댓글