Ask Your Question
0

How to enable passwordless ssh between the instances?

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

syko gravatar image

Hi,

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
0

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

Comments

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: http://sshkeychain.sourceforge.net/mi...

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 614 times

Last updated: Apr 18 '16