Openstack don’t connect instance with keypair
I use Openstack and I have got many instance . I want connect this instance with my keypair . My Openstack version latest (kilo) .
[[email protected] ~(keystone_demo)]# ssh -i bulut.pem [email protected] The authenticity of host '172.24.4.229 (172.24.4.229)' can't be established. ECDSA key fingerprint is 4a:d5:0b:8e:04:91:23:db:0e:9a:9c:c6:80:93:84:33. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '172.24.4.229' (ECDSA) to the list of known hosts. Permission denied (publickey).
I can ping to 172.24.4.229 ip .
[[email protected] ~(keystone_demo)]# ping 172.24.4.229 PING 172.24.4.229 (172.24.4.229) 56(84) bytes of data. 64 bytes from 172.24.4.229: icmp_seq=1 ttl=63 time=0.916 ms 64 bytes from 172.24.4.229: icmp_seq=2 ttl=63 time=0.292 ms
I create keypair following like ;
ssh-keygen -t rsa -f bulut.pem
I upload keypair to Openstack following like ;
nova keypair-add bulut > bulut.pem
Can I solve this problem ?
I solve this problem I require add ssh-add $file.pem . You can run following command ;
ssh-agent /bin/sh ssh-add $yourkey