Deleting known SSH Hosts on UNIX
- Luke Chikkala
- Nov 24, 2017
- 1 min read
Using terminal, go to /Users/Username/.ssh [code]cd /Users/John/.ssh[/code] Open the known_hosts file with a text editor of your choice [code]vi know_hosts[/code] Each line here is a host that has been permenantly registered on your machine. Delete the line that belongs to the unnecessary host. Tip: In VIM, dd is the shortcut to delete the entire line.
Cheers -l
PS. Life tip: To exit VIM, make sure you are in command mode by clicking ESC [escape] button on your keyboard/touch bar and type the following: [code]:wq[/code]
Comments