방금 AWS에서 EC2 인스턴스를 만들었습니다. 그 전에는 개인 키를 다운로드 한 키 쌍을 만들었습니다.AWS EC2 인스턴스를 연결하면 PEM 파일이 제공되지만 암호를 묻습니다.
이제 올바른 호스트 이름을 사용하여 새로 만든 인스턴스에 로그온하려고합니다. 물론 여기를 보안을 위해 바꿨습니다. 내가 키 파일을 제공하지만, 내가 암호를 묻는하고
ssh [email protected] -i ~/EC2key.pem -v
: 나는 디버그 출력을 얻을 수 -v 스위치를 추가했습니다. 여기에 잘못 무슨 일이 일어나고 있는지 보여줄 수있는 디버그 출력에서 발췌입니다 :
후debug1: Host 'myVirtualHost.compute-1.amazonaws.com' is known and matches the ECDSA host key.
debug1: Found key in /home/myuser/.ssh/known_hosts:15
debug1: ssh_ecdsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Trying private key: /home/myuser/EC2key.pem
debug1: read PEM private key done: type RSA
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: password
[email protected]'s password:[asks for password here]
왜 "PEM 개인 키 다 읽어 타입 RSA"결론은 "계속의 Authentications : 공개 키, 비밀 번호를"입니다?
가능한 복제본 : http://stackoverflow.com/questions/9747763/ssh-ec2-asking-for-password – Rishabh
예, 답이 없습니다. 내 ssh_config에는 PasswordAuthentication이 yes로 설정되어 있지 않습니다. 활성화 된 유일한 설정은 다음과 같습니다. SendEnv LANG LC_ *; HashKnownHosts 예; GSSAPIAuthentication 예; GSSAPIDelegateCredentials no – Passiday