How To Clear Known_Hosts In Ssh?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To clear known_hosts in ssh, you can use the ssh-keygen command. To do this, open a terminal window and type in the following command:
ssh-keygen -R <hostname>
Replace <hostname> with the hostname or IP address of the host you want to clear from the known_hosts file. This will delete the key for that host from the known_hosts file.