Random little stuff: ssh-keygen -R

OK, if you have been moving things around your world, sometimes, you will do a ssh myserver and you will get a public key does not match, could be a man-in-the-middle attack.

Well, this could be it or it could be that you’ve just rebuilt your network. If so, then you need to remove the host fingerprint from the ~/.ssh/known_hosts and you can just use (unintuitively) ssh-keygen -R <hostname> to do that.

I’m Rich & Co.

Welcome to Tongfamily, our cozy corner of the internet dedicated to all things technology and interesting. Here, we invite you to join us on a journey of tips, tricks, and traps. Let’s get geeky!

Let’s connect

Recent posts

Loading Mastodon feed…