Ask Your Question

How it can be made compulsory for My instance to use key-pair on ssh

asked 2017-04-19 01:13:31 -0500

deepak2112 gravatar image

I have installed newton release

I can ssh to my instance without key-pair also and with key-pair also,

my question is

how can i make my instance to login only by using key-pair not without key-pair ?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2017-04-19 01:26:56 -0500

OpenStack can't force the instance to reject password authentication. You need to change the sshd configuration on the instance. E.g. modify the image you boot from, so that /etc/ssh/sshd_config contains the line PasswordAuthentication No.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2017-04-19 01:13:31 -0500

Seen: 79 times

Last updated: Apr 19 '17