ssh-keygen -R hostname
This deletes the offending key from the known_hosts
The man page entry reads:
-R hostname
Removes all keys belonging to hostname from a known_hosts file. This option is useful to delete hashed hosts (see the -H option above).
Related Posts:
- How can I edit the welcome message when ssh start?
- Why is ssh agent forwarding not working?
- ping: google.com: Temporary failure in name resolution [closed]
- Docker System has not been booted with systemd as init system
- CentOS vs. Ubuntu [closed]
- Docker error : no space left on device
- localhost/phpinfo.php
- After installing with pip, “jupyter: command not found”
- gpg: no valid OpenPGP data found
- gpg: no valid OpenPGP data found
- E: Unable to locate package mongodb-org
- How to open the terminal in Atom?
- Valgrind permission denied on file
- nginx – nginx: [emerg] bind() to [::]:80 failed (98: Address already in use)
- How to install Boost on Ubuntu
- How to verify if nginx is running or not?
- pdflatex not found. pdflatex is needed for pdf output
- Nginx: stat() failed (13: permission denied)
- PIP Could not find any downloads that satisfy the requirement SQLAlchemy
- MySQL: How to reset or change the MySQL root password?
- Removing all installed OpenCV libs
- Vim: No write since last change, even though I changed the file
- Why can’t I print to terminal with my python script?
- How to kill a process on a port on ubuntu
- whats the meaning of curl “-s” and “-m”
- How do I ask apt-get to skip any interactive post-install configuration steps?
- How to view all ssl certificates in a bundle?
- How to remove the “installed manually” flag and revert to “automatically installed” with apt-get?
- How do I get apt-get to ignore some dependencies?
- How do I auto-start docker containers at system boot?
- How do I reattach to Ubuntu Server’s ‘do-release-upgrade’ process?
- How to determine JAVA_HOME on Debian/Ubuntu?
- How to start/stop iptables on Ubuntu?
- Which ports do I need to open in the firewall to use NFS?
- list all packages from a repository in ubuntu / debian
- dpkg-reconfigure: unable to re-open stdin: No file or directory
- How does Ubuntu keep track of the “System restart required” flag in motd?
- Amazon Linux vs. Ubuntu for Amazon EC2 [closed]
- Automate the installation of postfix on Ubuntu
- Best location to keep SSL certificates and private keys on Ubuntu servers?
- Undefined function mysql_connect()
- How can I completely uninstall nodejs, npm and node in Ubuntu [closed]
- How to install python3 version of package via pip on Ubuntu?
- ssh remote host identification has changed
- E: unable to locate package pip
- ssh “permissions are too open” error
- How to install “make” in ubuntu?
- “sed” command in bash
- ssh: Could not resolve hostname [hostname]: nodename nor servname provided, or not known
- Ubuntu: OpenJDK 8 – Unable to locate package
- How to tell if tensorflow is using gpu acceleration from inside python shell?
- How to open some ports on Ubuntu?
- What is actually in known_hosts?
- When to use “ON UPDATE CASCADE”
- Delete all local git branches
- “Unable to find remote helper for ‘https'” during git clone
- bash : Bad Substitution
- How to fix “unsupported class file major version 60” in IntelliJ?
- Forward X11 failed: Network error: Connection refused
- “psql: could not connect to server: Connection refused” Error when connecting to remote database
- to_string not declared in scope
- Git error: “Host Key Verification Failed” when connecting to remote repository
- Convert PEM to PPK file format
- How to change already compiled .class file without decompile?
- How to read iPhone files without jailbreaking?
- Specify an SSH key for git push for a given domain
- How to ssh from within a bash script?
- Install pip for python 3.5
- phpmyadmin “Not Found” after install on Apache, Ubuntu
- Is it fine to have foreign key as primary key?
- How to configure WP filesystem access in Linux (Ubuntu Server)?
- WPTerm ssh connection not working [closed]
- How to set intervals in cron jobs?
- Index.php using 100% CPU [closed]
- WordPress Redirects to a cancelled domain, need to change it but can’t get to the admin portal
- Force Jetpack to use og:url with http on an https website
- I can’t login to wordpress dashboard without SSH
- ssh returns “Bad owner or permissions on ~/.ssh/config”
- How do I change my private key passphrase?
- Create a public SSH key from the private key?
- Is it normal to get hundreds of break-in attempts per day?
- How do I make ssh fail rather than prompt for a password if the public-key authentication fails?
- Job scheduling using crontab, what will happen when computer is shutdown during that time?
- how do you create an ssh key for another user?
- SSH Suddenly returning Invalid format
- Why does my OpenSSH key fingerprint not match the AWS EC2 console keypair fingerprint?
- Login without running bash_profile or bashrc
- ssh tunnel refusing connections with “channel 2: open failed”
- df says disk is full, but it is not
- Show all users and their groups/vice versa
- What’s wrong with always being root?
- Is there a proper way to clear logs?
- Add comment to existing SSH public key
- Hundreds of failed ssh logins
- ssh connection takes forever to initiate, stuck at “pledge: network”
- protocol version mismatch — is your shell clean?
- bad ownership or modes for chroot directory component
- How should an IT department choose a standard Linux distribution?
- Is it possible to use rsync over sftp (without an ssh shell)?
- Command line program to test DHCP service