Ask Your Question

How to do key-exchange between instances with yaml file

asked 2018-03-20 02:47:13 -0500

Sehriban gravatar image

updated 2018-03-20 02:54:05 -0500

Hi everyone, I am trying ssh instances without using password. I found OS::Nova::KeyPair stack to accomplish it. But facing some problems with. Is there anyway to do that? (My yaml file create 2 VMs and i am giving same key pair for both)


1- I dont know if it is related or not but after adding 'key pair configurations' to yaml file, instances eth0 is not taking ip

2- Normally when i create key pair on dashboard pem yaml is created and downloaded automatically but in the case i do creation with yaml i donno where this pem extended file created.

Thanks sehriban alpaydin

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted

answered 2018-03-20 06:43:08 -0500

The second question is answered by this paragraph:

Note that if a new key is generated setting save_private_key to True results in the system saving the private key which can then be retrieved via the private_key attribute of this resource.

You could put the private key in an output, for example.

First question: It’s unlikely that they are related.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2018-03-20 02:47:13 -0500

Seen: 138 times

Last updated: Mar 20 '18