Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

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

Possible Duplicate:
Ignore known-hosts security in SSH for some addresses

I often need to login to multiple remote stations that are just placed to the same static IPs for me. SSH complains about changed keys in this case:

$ ssh root@
Offending RSA key in /home/vi/.ssh/known_hosts:70

I usually just run vim /home/vi/.ssh/known_hosts +70, dd wq and re-run the SSH command.

How to do it simpler?


  1. The warning should be displayed, and not like this:

    The authenticity of host ' (' can't be established.
  2. It is easy to accept the key change.

I expect something like this:

$ ssh root@
The fingerprint for the RSA key sent by the remote host is
Change the host key in /home/vi/.ssh/known_hosts (yes/no)? yes
Warning: Changed host key for '' (RSA) in the list of known hosts.
root@'s password:

Simple and differs from usual "The authenticity of host can't be established." message.

share|improve this question

marked as duplicate by Renan, Synetech, 8088, Hennes, BBlake Nov 6 '12 at 19:31

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

For a slight workaround, you can use ssh-keygen -R ip to remove the stored key for that IP.

Alternately, you can alias ssh to something like ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no which doesn't complain or ask to verify. Remove the StrictHostKeyChecking=no if you are okay with still seeing it and verifying it.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged .