Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I reset all the SSH settings, so that it worked as after fresh install? (I may delete the keys, they're not needed anymore.)

In Ubuntu 9.10, after a certain moment I started getting "Host key verification error" on every SSH server! This doesn't happen if I boot U9.10 from a USB stick.

culebron@culebron:~/.ssh$ ssh culebron@217.******
Host key verification failed.

~/.ssh/known_hosts doesn't exist (I must have removed it by an advice to "clean" known hosts list), yet SSH doesn't ask me, as earlier, if I want to add a host or not, just "Host key verification failed" every time.

share|improve this question
up vote 2 down vote accepted

Backup ~/.ssh on your computer, rm -rf ~/.ssh, try again. If that works, figure out which part of your old ~/.ssh was causing the problem (if you care).

share|improve this answer

You just need to delete the known_hosts in your ~/.ssh. Not everything. Try to paste an ssh -v output.

share|improve this answer
His question states '~/.ssh/known_hosts doesn't exist'. – churnd Nov 2 '09 at 20:46
whoops ;) In that case a verbose log might contain the answer. – wishi Nov 2 '09 at 21:28

Your Answer


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.