AWS CLI로 공개 키 설정할 때 주의할 점

조회 3,020 · 댓글 0
고구마엔사이다작성자2018년 10월 6일
자칫 잘못하면 이런 에러가 난다.


An error occurred (InvalidKey.Format) when calling the ImportKeyPair operation: Key is not in valid OpenSSH public key format


만약 이렇게 했다면?


aws ec2 import-key-pair --key-name testkeypair  --public-key-material testkeypair.public 


이렇게 해야 한다.


aws ec2 import-key-pair --key-name testkeypair  --public-key-material file://testkeypair.public

로그인 후 답글을 남길 수 있습니다.