permissions - Can't SSH after creating an Instance from Command line -


i creating instance command line using command

nova boot --no-service-net --no-public --disk-config auto --config-drive=true --flavor 2 --key-name key1 --image c28bc1e8-a25f-413c-9e13-fecdd5d6f522 test 

when instance launched tried ssh instance using command

ssh -i key1.key fedora@10.0.0.10 

but gives me permission error,

permission denied (publickey,gssapi-keyex,gssapi-with-mic)

and when create instance dashboard/horizon. can ssh without problem or issue same command ssh -i key2.key fedora@10.0.0.12

guide me problem why can't ssh after creating instance command line.

there problem in ssh key generation, generating ssh key like

ssh-keygen -t rsa -f newdemokey.key 

and add key nova keypair-list. not working ssh instance

but best way generate ssh key is,

ssh-keygen 

and add key nova keypair-list,

nova keypair-add --pub-key ~/.ssh/id_rsa.pub test-key 

it work new instance ssh.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -