Ho appena creato un'istanza EC2 su AWS. Prima ho creato la mia coppia di chiavi, ho scaricato la chiave privata.Connessione all'istanza AWS EC2 richiede la password anche se il file PEM è fornito
Ora sto cercando di accedere all'istanza appena creata (utilizzando il nome host corretto, ovviamente, quello che ho sostituito qui per sicurezza). Ho aggiunto opzione -v per ottenere l'output di debug:
ssh [email protected] -i ~/EC2key.pem -v
Sebbene io fornisco il file di chiave, mi viene chiesto per la password. Ecco un estratto dal output di debug che potrebbero mostrare cosa sta andando male:
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]
Perché dopo "leggere PEM chiave privata fatta: tipo RSA" la conclusione è "autenticazioni che possono continuare: publickey, la password"?
possibile duplicato per: http://stackoverflow.com/questions/9747763/ssh-ec2-asking-for-password – Rishabh
Sì e senza risposta. Il mio ssh_config non ha PasswordAuthentication impostato su yes. Le uniche impostazioni abilitate sono: SendEnv LANG LC_ *; HashKnownHosts sì; GSSAPIAuthentication yes; GSSAPIDelegateCredentials no – Passiday