Skip to main content
← back to field notes
One min readDevelopment

Fixing bad SSH keys

sshsecurity

SSH keys are a great way to authenticate with a remote server. They are secure, and they are easy to use. However, they can be a pain to manage. If you have ever had to deal with a bad SSH key, you know what I mean. Especially if you are using cloud services where IP addresses may be reused.

If you are connecting to a known host, where the IP address has changed, or if the IP has been reassigned to a different host, it become necessary to remove the old key from your known hosts file. This can be done with the following command:

ssh-keygen -R [IP]
field notes

you may also enjoy

more from this thread of thought

Introducing Git Revenge, and whether you should use it
Nov 5, 2026

Introducing Git Revenge, and whether you should use it

read more →
The cost of maintaining open source
Oct 27, 2026

The cost of maintaining open source

read more →
Is there a future without AI?
Oct 25, 2026

Is there a future without AI?

read more →
Introducing "Ink and Agency" a skill pack for humans (and claude)
May 18, 2026

Introducing "Ink and Agency" a skill pack for humans (and claude)

read more →
working with git: archive
Aug 5, 2025

working with git: archive

read more →
Surprise Driven Development
Jul 10, 2025

Surprise Driven Development

read more →
the field notes

recently written