Ask Your Question

Whats difference between key-pair authentication and password Authentication?

asked 2014-08-05 08:31:29 -0500

Mayank gravatar image

Whats the difference between key-pair authentication and password based authentication?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2014-08-05 11:59:58 -0500

SGPJ gravatar image

Simple generated key-pair using ssh key gen vs user created passowrd. If you have cloud images like Ubuntu cloud: Firstly, generated a keypair and then initiating an instance by this command: nova boot --image IMAGE_NAME --flavor FLAVOR_NAME --key_name KEYPAIR INSTANCE_NAME. (e.g nova boot --image Ubuntu 13.10 --flavor m1.small --key_name id_rsa myFirstInstance). After that you should find out the ip address of that instance, then ssh to it. (ssh unbuntu@x.x.x.x , or root@x.x.x.x ). Then you should be prompted for the passphrase you entered for the keypair.

edit flag offensive delete link more

answered 2014-08-05 10:33:00 -0500

Ankur gravatar image

Most cloud images support public key authentication rather than conventional username/password authentication. Before launching an instance, you must generate a public/private key pair using ssh-keygen and add the public key to your OpenStack environment.

If your host does not contain the public/private key pair created in an earlier step, SSH prompts for the password associated with the user.

Please refer- (

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-08-05 08:31:29 -0500

Seen: 590 times

Last updated: Aug 05 '14