• 카테고리

    질문 & 답변
  • 세부 분야

    풀스택

  • 해결 여부

    미해결

윈도우상에 퍼미션 설정

19.07.31 15:33 작성 조회수 445

0

아마존에 계정 설정한 후 연결하려는데 아래와 같은 에러가 뜹니다.

윈도우 상에서 퍼미션을 주려고 시도해 보았으나, 설정이 되지 않네요. 

도움 요청드립니다.

 

C:\react-git\ch8>ssh -i "react-weonsj.pem" ubuntu@ec2-3-130-67-120.us-east-2.compute.amazonaws.com

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

@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @

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

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

ubuntu@ec2-3-130-67-120.us-east-2.compute.amazonaws.com: Permission denied (publickey).

 

=== webstorm terminal에서 실행 ===============================================

C:\react-git\ch8>chmod 400 react-weonsj.pem

'chmod'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는

배치 파일이 아닙니다.

 

==== git bash에서 실행====================================================

weonsj@weonsj-pc MINGW64 /c/react-git/ch8 (master)

$ ls -l

total 16

drwxr-xr-x 1 weonsj 197121    0  7월 30 10:45  back/

drwxr-xr-x 1 weonsj 197121    0  7월 31 09:16  front/

-r--r--r-- 1 weonsj 197121 1692  7월 31 13:19 'react-weonsj - 복사본.pem'

-r--r--r-- 1 weonsj 197121 1692  7월 31 13:19  react-weonsj.pem

 

weonsj@weonsj-pc MINGW64 /c/react-git/ch8 (master)

$ chmod 400 react-weonsj.pem

 

weonsj@weonsj-pc MINGW64 /c/react-git/ch8 (master)

$ ls -l

total 16

drwxr-xr-x 1 weonsj 197121    0  7월 30 10:45  back/

drwxr-xr-x 1 weonsj 197121    0  7월 31 09:16  front/

-r--r--r-- 1 weonsj 197121 1692  7월 31 13:19 'react-weonsj - 복사본.pem'

-r--r--r-- 1 weonsj 197121 1692  7월 31 13:19  react-weonsj.pem

 

답변 1

답변을 작성해보세요.

0

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

이거 따라하시면 될듯한데 해외라 확인이 어렵네요