Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When I'm trying to login remotely using SSH, it asks something like:

The authenticity of host '192.168.0.4 (192.168.0.4)' can't be established.
ECDSA key fingerprint is 64:ec:a0:fa:bf:f0:65:a6:b2:af:90:f2:97:44:e4:3f.
Are you sure you want to continue connecting (yes/no)?

What is that, and what can I do?

share|improve this question
add comment

2 Answers

ssh deals with the log in credentials and the public key for providing access.

the public key is saved in ~/.ssh/known_hosts file on local machine.

@Nani, what you are getting on the prompt is "you are being asked to save the public key on your local machine."

You need to answer yes, so that the key is saved and it will not ask you again. (Unless the public key of remote machine is changed.)

If public key of the remote machine is changed, you have to remove the previously saved key from the ~/.ssh/known_hosts

share|improve this answer
    
@Sourav, /root/.. and ~/.. both are same. –  Raj S Oct 31 '13 at 12:11
add comment

That is just public key is saved in ~/.ssh/known_hosts file on local machine.

Go ahead, type yes, next it will ask for password of 192.168.0.4

Now you are connected to and can access 192.168.0.4

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.