cant ssh into instance using key..

asked 2016-12-12 03:38:39 -0600

vathanlal gravatar image

updated 2016-12-14 07:06:44 -0600

Hi, I have a newton Openstack cluster.. I can successfully launch instance and ping the instance.. I can even ssh into my cirros instance using default userid and password.. I launched a centos and ubuntu instances from its cloud image.. But I cant ssh into these instance using the key generated.. I can ping its floating Ip successfully but cant ssh into it.. Please help.. Iam getting error like below for all time

The authenticity of host ' (' can't be established.
ECDSA key fingerprint is SHA256:pqroB0RkIuVa+KBL03Zqu5a205aW/Onl2r6g7Ezx2IA.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '' (ECDSA) to the list of known hosts.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).

Iam getting the error below in my console.log of ubuntu and centos image

[  126.984857] cloud-init[992]: 2016-12-13 17:50:48,502 -[WARNING]: Calling '' failed [112/120s]: bad status code [404]
[  134.005640] cloud-init[992]: 2016-12-13 17:50:55,523 -[WARNING]: Calling '' failed [119/120s]: request error [HTTPConnectionPool(host='', port=80): Max retries exceeded with url: /2009-04-04/meta-data/instance-id (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7fcb3ff9eb70>: Failed to establish a new connection: [Errno 115] Operation now in progress',))]
[  141.027066] cloud-init[992]: 2016-12-13 17:51:02,540 -[CRITICAL]: Giving up on md from [''] after 126 seconds
atus code [404]
[  257.601354] cloud-init[992]: 2016-12-13 17:52:59,118 -[WARNING]: Calling '' failed [116/120s]: bad status code [404]
[  264.612128] cloud-init[992]: 2016-12-13 17:53:06,126 -[CRITICAL]: Giving up on waiting for the metadata from [''] after 123 seconds
[  268.372436] cloud-init[992]: Generating public/private rsa key pair.
[  268.375389] cloud-init[992]: Your identification has been saved in /etc/ssh/ssh_host_rsa_key.
[  268.381998] cloud-init[992]: Your public key has been saved in /etc/ssh/
[  268.388591] cloud-init[992]: The key fingerprint is:
edit retag flag offensive close merge delete


A few suggestions: Run ssh with -v or -vv or -vvv. Check if the instance has a copy of the public key. Check if it can access the metadata API or config drive. Run neutron agent-list to check if the metadata agent is up.

Bernd Bausch gravatar imageBernd Bausch ( 2016-12-12 09:15:05 -0600 )edit


 ssh-keygen -R


 ssh -v -i your_key.pem centos@
yas gravatar imageyas ( 2016-12-12 11:26:26 -0600 )edit

I used openstack keypair create --public-key ~/.ssh/ mykey to generate the key.. From where I will get mykey.pem..??

vathanlal gravatar imagevathanlal ( 2016-12-14 07:03:05 -0600 )edit

As far as I see your cloud VMs fail to connect Nova Metadata Server ( openstack-nova-api ) on Controller. Openstack Nodes Cluster is misconfigured

dbaxps gravatar imagedbaxps ( 2016-12-14 08:45:43 -0600 )edit

How can I find where the misconfiguration is?? I asked this as a question in (

vathanlal gravatar imagevathanlal ( 2016-12-14 08:53:46 -0600 )edit