[#]TIL ssh-keygen -R <ip--or-hostname>
to remove a host from ~/.ssh/known_hosts. I'm adding it as reminder comment on the top line of that file.
=> More informations about this toot | More toots from alex@moreati.org.uk
@alex I have an alias no_hosts_ssh for logging in to ephemeral hosts without adding an annoying hosts entry. I wish there was a cli option to make that simpler.
=> More informations about this toot | More toots from mattb@hachyderm.io
@mattb I'm guessing your alias is something like ssh -o "GlobalKnownHostsFile /dev/null" -o "UserKnownHostsFile /dev/null" -o "StrictHostKeyChecking no"
?
=> More informations about this toot | More toots from alex@moreati.org.uk
@alex Guessing the only difference is the name of our aliases 😀
=> More informations about this toot | More toots from mattb@hachyderm.io
@alex I just vi the file and delete the line matching the address or hostname.
=> More informations about this toot | More toots from hyc@mastodon.social This content has been proxied by September (3851b).Proxy Information
text/gemini