User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
ssh [2015/05/17 17:44] external edit
ssh [2015/07/12 11:12] (current)
sebastian Removing offending host keys
Line 11: Line 11:
 ssh-copy-id <​user>​@<​host>​ ssh-copy-id <​user>​@<​host>​
 </​code>​ </​code>​
 +====== Troubleshooting ======
 +===== Dealing with "​offending key" errors =====
 +Under normal circumstances you should take a warning like this seriously:
 +Warning: the RSA host key for '​'​ differs from the key for the IP address '​'​
 +But if you just reinstalled your server the installation process generates a new host key. Unless you specifically restore the old one (which is a good idea if you other users on your machine whom you don't want to scare) you will end up in such a warning because in your ''​known_hosts''​ file the old key is associated with the hostname and / or the IP address.
 +Remove the old key:
 +<code bash>
 +ssh-keygen -R your_hostname_or_ip
 +Now connect again and make sure you verify the fingerprint of the host!
ssh.txt ยท Last modified: 2015/07/12 11:12 by sebastian