7.4 Changing an SSH Host Key (2024)

The SSH Host key is used to distinguish monitored hosts, there should not be duplicate SSH keys. A key can be duplicated if a server is cloned. This section describes how to change the SSH host key for a particular host, eliminating the events and alarms generated when duplicate hosts are detected.

On UNIX, Linux and Mac OS platforms, use the ssh-keygen utility. On Microsoft Windows platforms, there are several tools, but this example uses puttygen.

  1. Identiify the duplicate SSH keys.

    On each monitored host, run the following commands to print out the SSH public key fingerprints:

    ssh-keygen -l -f /etc/ssh/ssh_host_key.pubssh-keygen -l -f /etc/ssh/ssh_host_dsa_key.pubssh-keygen -l -f /etc/ssh/ssh_host_rsa_key.pub 

    and compare the fingerprints between each server. Remove the existing key and regenerate the key for each server with a duplicate key using the following instructions.

  2. On the monitored host, delete the existing, duplicate SSH key. For example:

    sudo rm -f /etc/ssh/ssh_host_*
  3. On the monitored host, regenerate the SSH keys. This operation requires you to add each of these hosts to your SSH keyring the next time you connect. For example:

    sudo ssh-keygen -f /etc/ssh/ssh_host_key -N '' -t rsa1sudo ssh-keygen -f /etc/ssh/ssh_host_rsa_key -N '' -t rsasudo ssh-keygen -f /etc/ssh/ssh_host_dsa_key -N '' -t dsa 

    If using puttygen, click Generate and follow the instructions on-screen.

    Note

    The key can be generated using RSA (SSH1 or SSH2), DSA, or ECDSA. All are supported by MySQL Enterprise Monitor.

  4. Restart your sshd server.

  5. Note

    This step is required on MySQL 5.5 instances, only. It is not required on any version of MySQL 5.6, or higher.

    On the monitored MySQL instance, edit the hostid value:

    mysql> UPDATE mysql.inventory SET VALUE = 'ssh:{New SSH Fingerprint}' WHERE name = 'hostId'; 
  6. Restart the monitoring agent.

7.4 Changing an SSH Host Key (2024)
Top Articles
Authenticator won't add account due to "notification" settings - Microsoft Q&A
What Is ChatGPT, and How Does It Make Money?
Mybranch Becu
Durr Burger Inflatable
Senior Tax Analyst Vs Master Tax Advisor
Jesus Calling December 1 2022
Coffman Memorial Union | U of M Bookstores
Teenbeautyfitness
Holly Ranch Aussie Farm
The Best English Movie Theaters In Germany [Ultimate Guide]
Wfin Local News
270 West Michigan residents receive expert driver’s license restoration advice at last major Road to Restoration Clinic of the year
Imbigswoo
Locate Td Bank Near Me
Hardly Antonyms
Caroline Cps.powerschool.com
Sports Clips Plant City
Zürich Stadion Letzigrund detailed interactive seating plan with seat & row numbers | Sitzplan Saalplan with Sitzplatz & Reihen Nummerierung
Rosemary Beach, Panama City Beach, FL Real Estate & Homes for Sale | realtor.com®
U/Apprenhensive_You8924
Clarksburg Wv Craigslist Personals
Eka Vore Portal
Walmart Double Point Days 2022
Midlife Crisis F95Zone
Roster Resource Orioles
Craigslist Appomattox Va
Lista trofeów | Jedi Upadły Zakon / Fallen Order - Star Wars Jedi Fallen Order - poradnik do gry | GRYOnline.pl
Wkow Weather Radar
Riversweeps Admin Login
Idle Skilling Ascension
Bra Size Calculator & Conversion Chart: Measure Bust & Convert Sizes
Afni Collections
Craigslist Sf Garage Sales
Homewatch Caregivers Salary
Mrstryst
Kokomo Mugshots Busted
Haley Gifts :: Stardew Valley
Admissions - New York Conservatory for Dramatic Arts
Jasgotgass2
Scarlet Maiden F95Zone
Gopher Hockey Forum
Shoecarnival Com Careers
Rocky Bfb Asset
2024-09-13 | Iveda Solutions, Inc. Announces Reverse Stock Split to be Effective September 17, 2024; Publicly Traded Warrant Adjustment | NDAQ:IVDA | Press Release
Candise Yang Acupuncture
Squalicum Family Medicine
Rise Meadville Reviews
Dlnet Deltanet
Missed Connections Dayton Ohio
Mike De Beer Twitter
Thrift Stores In Burlingame Ca
Varsity Competition Results 2022
Latest Posts
Article information

Author: Fredrick Kertzmann

Last Updated:

Views: 5462

Rating: 4.6 / 5 (66 voted)

Reviews: 81% of readers found this page helpful

Author information

Name: Fredrick Kertzmann

Birthday: 2000-04-29

Address: Apt. 203 613 Huels Gateway, Ralphtown, LA 40204

Phone: +2135150832870

Job: Regional Design Producer

Hobby: Nordic skating, Lacemaking, Mountain biking, Rowing, Gardening, Water sports, role-playing games

Introduction: My name is Fredrick Kertzmann, I am a gleaming, encouraging, inexpensive, thankful, tender, quaint, precious person who loves writing and wants to share my knowledge and understanding with you.