Otherwise forgotten.
Wednesday, July 20, 2022
Remove a known key in .ssh/known_hosts
I couldn't use the ssh tools on the system for some reason. Also, it's not a system with a lot of gnu tools. They did have perl.
To remove line 21 from known_hosts, I settled on:
perl -pi -e 's/\Q$_// if ($. == 21);' ~/.ssh/known_hosts
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment