Amazon EC2 ssh login failure -
i trying login instance on ec2 , have far been unsuccessful. provide output of relevant commands , things i've tried. i've done homework , looked around, still cant explain why unable login.
the keypair generated online using amazons aws console , downloaded private file locally. chmod'ed 600.
$ ec2-describe-keypairs keypair gsg-keypair bb:ac:f0:5f:5b:c8:24:47:16:a8:93:35:37:1c:b3:c3:84:68:80:e1 $ ec2-run-instances ami-8d18f5e4 -k gsg-keypair instance i-2dcea041 ami-8d18f5e4 pending gsg-keypair 0 m1.small 2011-02-09t10:50:50+0000 us-east-1c aki-a71cf9ce ari-a51cf9cc monitoring-disabled instance-store xen $ ec2-describe instances instance i-2dcea041 ami-8d18f5e4 ec2-75-101-249-242.compute-1.amazonaws.com domu-12-31-39-00-5d-d2.compute-1.internal running gsg-keypair 0 m1.smal2011-02-09t10:50:50+0000 us-east-1c aki-a71cf9ce ari-a51cf9cc monitoring-disabled 75.101.249.242 10.254.98.32 instance-store
i have run ec2-authorize default -p 22.
the output ssh is:
$ ssh -v -i id_rsa-gsg-keypair root@ec2-75-101-249-242.compute-1.amazonaws.com openssh_5.1p1 debian-6ubuntu2, openssl 0.9.8g 19 oct 2007 debug1: reading configuration data /etc/ssh/ssh_config debug1: applying options * debug1: connecting ec2-75-101-249-242.compute-1.amazonaws.com [75.101.249.242] port 22. debug1: connection established. debug1: identity file id_rsa-gsg-keypair type -1 debug1: remote protocol version 2.0, remote software version openssh_5.1p1 debian-5 debug1: match: openssh_5.1p1 debian-5 pat openssh* debug1: enabling compatibility mode protocol 2.0 debug1: local version string ssh-2.0-openssh_5.1p1 debian-6ubuntu2 debug1: ssh2_msg_kexinit sent debug1: ssh2_msg_kexinit received debug1: kex: server->client aes128-cbc hmac-md5 none debug1: kex: client->server aes128-cbc hmac-md5 none debug1: ssh2_msg_kex_dh_gex_request(1024<1024<8192) sent debug1: expecting ssh2_msg_kex_dh_gex_group debug1: ssh2_msg_kex_dh_gex_init sent debug1: expecting ssh2_msg_kex_dh_gex_reply authenticity of host 'ec2-75-101-249-242.compute-1.amazonaws.com (75.101.249.242)' can't established. rsa key fingerprint d0:ae:58:59:88:b8:58:ae:ab:dc:6f:a0:14:d5:f2:51. sure want continue connecting (yes/no)? yes failed add host list of known hosts (/home/meh/.ssh/known_hosts). debug1: ssh_rsa_verify: signature correct debug1: ssh2_msg_newkeys sent debug1: expecting ssh2_msg_newkeys debug1: ssh2_msg_newkeys received debug1: ssh2_msg_service_request sent debug1: ssh2_msg_service_accept received debug1: authentications can continue: publickey debug1: next authentication method: publickey debug1: trying private key: id_rsa-gsg-keypair debug1: read pem private key done: type rsa debug1: authentications can continue: publickey debug1: no more authentication methods try. permission denied (publickey).
any appreciated here. i've tried million things , still cannot figure out going on.
thanks.
you might have permissions error:
failed add host list of known hosts (/home/meh/.ssh/known_hosts)
make sure user account has write access file /home/meh/.ssh/known_hosts
Comments
Post a Comment