Ask Your Question

How to enable passwordless ssh between the instances?

asked 2016-04-17 22:18:40 -0600

syko gravatar image


The instances which dynamically go up and down need pair-to-pair passwordless ssh connections. Whenever I add an instance I have to add the other instances' key into the new one, and the new one's into the others', which is extremely bothersome.

  1. How can I enable passwordless ssh logins between the instances?

  2. Can I just allow all users passwordless login through ssh? I am the only one who use the openstack, and there is no reason to keep it secret. Appending "sshd : ALL : allow" into /etc/hosts.allow didn't work.

thanks for your help

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2016-04-18 09:51:20 -0600

raimonbosch gravatar image

updated 2016-04-18 09:54:01 -0600

When you deploy a new instance on the tab "Access & Security" you can choose a keypair. I guess that if you choose the same keypair for all instances, they will get connectivity between them. If that does not work, you could also set up an initialization script on "Post-Creation" tab and modify ~/.ssh/authorized_keys

edit flag offensive delete link more


How do we setup a post creation script?? Please guide.

soumitrakarmakar gravatar imagesoumitrakarmakar ( 2016-04-22 01:17:03 -0600 )edit

you can use plain shell scripting. Something like echo "YOUR_PUBLIC_KEY" >> ~/.ssh/authorized_keys and set all the permissions accordingly. Here you have some tips:

raimonbosch gravatar imageraimonbosch ( 2016-04-22 03:29:25 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-04-17 22:18:40 -0600

Seen: 690 times

Last updated: Apr 18 '16