List the existing Keypair
# nova keypair-list
Exports the existing Keypair
Syntax: nova keypair-add KEYPAIR_NAME > keypair.pem (any name with .pem extension)
# nova keypair-add keypair > keypair.pem
Assigning permissions to the keypair
# chmod 600 key1.pem
At last assign the keypair while creating an instance (see below command as an example)
# nova boot --flavor m1.tiny --image cirros-0.3.4-x86_64-uec --security-group default --key-name key1 Cirros1
# nova keypair-list
Exports the existing Keypair
Syntax: nova keypair-add KEYPAIR_NAME > keypair.pem (any name with .pem extension)
# nova keypair-add keypair > keypair.pem
Assigning permissions to the keypair
# chmod 600 key1.pem
At last assign the keypair while creating an instance (see below command as an example)
# nova boot --flavor m1.tiny --image cirros-0.3.4-x86_64-uec --security-group default --key-name key1 Cirros1
0 comments:
Post a Comment