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

Git for designers and writers, without the terminal
Nov 25, 2026

Git for designers and writers, without the terminal

read more →
Notebooks, datasets and API keys: making git behave for data work
Nov 24, 2026

Notebooks, datasets and API keys: making git behave for data work

read more →
A git GUI for people who live in the terminal
Nov 23, 2026

A git GUI for people who live in the terminal

read more →
A git client your security team has nothing to ask about
Nov 20, 2026

A git client your security team has nothing to ask about

read more →
Three of me in one git log: keeping identities apart with includeIf
Nov 19, 2026

Three of me in one git log: keeping identities apart with includeIf

read more →
A free git client for private repos and self-hosted git
Nov 18, 2026

A free git client for private repos and self-hosted git

read more →
the field notes

recently written