putty에서 AWS서버 접속을 위한 ssh key변환(pem -> ppk)

 

putty를 통해 ec2 서버에 접속하시 위해서는 pem 파일을 ppk파일로 변환이 필요합니다.

 

Puttygen 설치 후 실행 -> Load 선택

 

All Files로 변경 -> PEM키 선택 ->  열기

 

확인 선택

 

"Save private key" 선택하여  ppk 개인 키를 원하시는 위치에 저장합니다.

 

이제 ppk를 통해 ec2서버에 접속해 보겠습니다

Putty를 실행하시고 왼쪽 메뉴에서

"Connection -> SSH -> Auth -> Credentials" 순으로 들어가셔서

"Public key authentication" 부분에 조금 전 저장한 ppk 키를 넣어줍니다

(만약 왼쪽 메뉴가 조금 다를 경우 putty를 최신으로 업데이트 후 다시 시도해 보시기 바랍니다.)

 

그다음, Session 메뉴에 들어가셔서

'Host name" 부분에 서버의 도메인 또는 IP를 입력 후 Open을 선택합니다

 

접속 완료

 

만약, 아래와 같은 에러가 발생한다면

아래 링크를 참고하여 조치를 하시면 됩니다.

 

https://sh-safer.tistory.com/196

 

[해결] 에러 - no supported authentication methods available (server sent publickey gssapi-keyex gssapi-with-mic)

증상 조치 vi /etc/sshd/sshd_config - PasswordAuthentication no 주석처리 - PasswordAuthentication yes 추가 # To disable tunneled clear text passwords, change to no here! #PasswordAuthentication yes #PermitEmptyPasswords no #PasswordAuthentication

sh-safer.tistory.com

 

댓글

Designed by JB FACTORY

loading