ssh remove known_hosts entry 1

ssh remove known_hosts entry

ssh-keygen -R "hostname"

Here is what the above code is Doing:
1. It’s creating a new SSH client.
2. It’s loading the host keys from the user’s local known_hosts file.
3. It’s connecting to the remote SSH server.
4. It’s authenticating to the remote SSH server.
5. It’s using the connection to send an SSH command.
6. It’s reading the output of the SSH command.
7. It’s printing the output of the SSH command.

Similar Posts