Ask Your Question

Can't SSH after creating an Instance from Command line

asked 2014-06-03 03:26:33 -0500

Zaheer Jan gravatar image

updated 2014-06-03 03:27:20 -0500

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@

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@

Guide me what is the problem why I can't ssh after creating an instance from command line.

edit retag flag offensive close merge delete


if you try the command

nova show <VMname>

on both vm (the cli booted one and the horizon one), do you see any relevant difference?

Antonio G. gravatar imageAntonio G. ( 2014-06-03 05:30:27 -0500 )edit

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.

Zaheer Jan gravatar imageZaheer Jan ( 2014-06-03 06:00:36 -0500 )edit

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?

Antonio G. gravatar imageAntonio G. ( 2014-06-03 07:09:18 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2015-02-15 16:46:08 -0500 Unix/Linux blog

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-06-03 03:26:33 -0500

Seen: 1,467 times

Last updated: Jun 03 '14