ssh to a compute instance

Asked by dubi

I have started an instance on a nova compute node . The instance is active .
The instance is: 32 bit ubuntu-10.04-server-cloudimg-i386 - a standard instance that cited by (stackrc) devstack

I can ping it (10.0.0.2) but do not know a default user /password to log in to it .

trying to ssh with any name returns the following :

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
89:71:83:85:6e:92:a0:3a:8a:4b:35:9f:1d:a6:d1:17.
Please contact your system administrator.
Add correct host key in /home/dubi/.ssh/known_hosts to get rid of this message.
Offending RSA key in /home/dubi/.ssh/known_hosts:4
  remove with: ssh-keygen -f "/home/dubi/.ssh/known_hosts" -R 10.0.0.2
RSA host key for 10.0.0.2 has changed and you have requested strict checking.
Host key verification failed.

Any advice ?

Question information

Language:
English Edit question
Status:
Answered
For:
OpenStack Compute (nova) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Yaguang Tang (heut2008) said :
#1

run ssh-keygen -f "/home/dubi/.ssh/known_hosts" -R 10.0.0.2 on your shell, then try again to login in .
you need to create a ssh keypair then select the key when you run instances, login to the instance with the correct private key
I suggest you read the docs before . docs.openstack.org

Revision history for this message
limingpeng (lmpanx) said :
#2

recreate instance

Can you help with this problem?

Provide an answer of your own, or ask dubi for more information if necessary.

To post a message you must log in.