AllSupported
Home How To Linux Search
  1. Home
  2. /
  3. Linux
  4. /
  5. Relearn or overwrite old know_hosts with new host keys

Relearn or overwrite old know_hosts with new host keys

By Tech Writer • August 5, 2014 • 1 min read

 

  Use this command

 ssh-keygen -R hostname 

 For example, 

ssh-keygen -R server2.mycompany.net

This will allows changes to known_hosts to occur which will no longer trigger the host authenticity warning.

 

 

Related Articles

How to Fix Permission Denied Errors in Linux: Complete Guide

Learn how to troubleshoot and fix Permission Denied errors in Linux with chmod, chown, and proper file permissions. Includes solutions for SSH keys, scripts, and web servers.

How to Fix No Space Left on Device Errors in Linux

Complete guide to diagnosing and fixing disk space issues in Linux. Learn how to find large files, clean up logs, and free up space safely.

Troubleshooting Network Connectivity Issues in Linux: Complete Guide

Learn how to diagnose and fix network problems in Linux. Covers ping, traceroute, DNS issues, firewall problems, and interface configuration.

Systemd Service Troubleshooting: Complete Guide to Fix Failed Services

Master systemd troubleshooting with this comprehensive guide. Learn how to diagnose failed services, read logs, and fix common systemd issues in Linux.

Fix SSH Connection Refused and Timeout Errors in Linux

Complete guide to troubleshooting SSH connection problems. Learn how to fix connection refused, timeout, and authentication errors.

AllSupported

Your trusted source for tech support and tutorials.

Categories

  • How To (90)
  • Linux (35)
  • PHP (26)
  • Productivity (23)

Resources

  • About Us
  • Contact
  • RSS Feed

Connect

Stay updated with the latest tech support articles and tutorials.

© 2026 AllSupported. All rights reserved.