Ubuntu and ssh keys

Posted by scottk on October 11, 2006 in Linux, Sysadmin, Ubuntu, Uncategorized |

Ran across a small thing in Ubuntu. Normally when host changed on me for my ssh connection I get the big “HOST IDENTIFICATION HAS CHANGED” and the “man-in-the-middle attack” message. Previously I’d just went in and edited ~/.ssh/known_hosts file (under various Redhat flavors) and removed the offending host by searching for it’s name. At that which point it would then repopulate the next time I made a connection. In Ubuntu it seems the host names are encrypted so in order to change them you need to execute “ssh-keygen -R hostname” which will yank that line from the known hosts file.

Copyright © 2006-2024 SimpIT.com All rights reserved.
This site is using the Desk Mess Mirrored theme, v2.5, from BuyNowShop.com.