Can't SSH after creating an Instance from Command line
I am creating an instance from 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 successfully I tried to ssh instance by using this command
ssh -i key1.key fedora@10.0.0.10
but it gives me an permission error,
Permission denied (publickey,gssapi-keyex,gssapi-with-mic)
And when I create an instance from Dashboard/Horizon. I can ssh without any problem or issue with the same command ssh -i key2.key fedora@10.0.0.12
Guide me what is the problem why I can't ssh after creating an instance from command line.
if you try the command
on both vm (the cli booted one and the horizon one), do you see any relevant difference?
Yeah I have ran this command. The only difference is user_id, user_id of cli booted and user_id of horizon booted is different.
Ok, maybe there is a keypair problem. Could you try regenerating your key in the cli based test? You could follow the following howto.
If it does not work this way, could you try to perform a cli based test with the user used in the horizon one?