First determine whether the SSH warning is caused by a stale record on your computer or by two Droplets actually presenting the same host key. If a Droplet was rebuilt and reused an IP address, remove the old known_hosts entry only after verifying the new server’s identity. If two servers’ host-key fingerprints match, rotate the affected server keys; clearing a client record alone will not fix duplicated keys.
What “duplicate SSH host keys” can mean
SSH host keys let a client recognize a server. They are separate from your login credentials: a host key is the server’s identity, while a private user key authenticates you and a public key in authorized_keys grants login access. DigitalOcean discusses user-authentication keys separately from server host keys in its SSH troubleshooting guidance.
The warning WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! does not, by itself, prove that two servers share a key. DigitalOcean says the warning commonly occurs when a Droplet is destroyed and a replacement is created using the same IP address: the client still has the previous server’s key recorded.
| Case | What is happening | Where the repair is made |
|---|---|---|
| Stale client record | Your SSH client remembers a previous server at this IP address or hostname. | On each affected client, after verifying the replacement server. |
| Duplicated server identity | Two Droplets present the same SSH host-key fingerprint, or a server’s identity needs replacement. | On the affected Droplet, using trusted administrative access or recovery. |
Diagnose before changing keys
Record the endpoint and fingerprint
Note the Droplet’s IP address or hostname and the fingerprint shown in the warning. Confirm in the DigitalOcean control panel or another trusted channel which Droplet currently owns that endpoint. A rebuilt or replaced Droplet that inherited an old IP is a strong reason to suspect a stale client record, not proof of duplicate server keys.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
#1 Best Overall
- Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
- Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
- Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
- Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
- 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
Compare fingerprints to test for real duplication
If you have trusted console or administrative access to both Droplets, inspect the configured SSH host-key files. Common OpenSSH defaults are under /etc/ssh, though a distribution can configure different paths. Compare fingerprints for the public host-key files and for the key types both servers offer. Do not copy or publish private host-key material.
If the fingerprints differ, the warning may be an expected change for that endpoint; proceed with client-side cleanup only after verifying that the presented key belongs to the intended Droplet. If fingerprints match across two Droplets, investigate and rotate the affected server keys. The available DigitalOcean guidance does not establish how often duplication occurs or prove a particular provisioning method caused it.
Rank #2
- 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
- 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
- Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
- 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
- What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.
Fix a stale known_hosts entry
Use this remedy when the endpoint now belongs to the expected Droplet and you have independently verified its offered fingerprint. DigitalOcean documents this command for removing an old IP entry after a Droplet replacement:
ssh-keygen -R <droplet-ip>
- Run the command on the client that displayed the warning, replacing
<droplet-ip>with the actual address. - For a non-default SSH port or a hostname entry, use the exact host notation recorded in the relevant
known_hostsfile. DigitalOcean also documents specifying a file withssh-keygen -f <known_hosts-file> -R <droplet-ip>. - Reconnect to the verified endpoint. Compare the newly presented fingerprint with the one obtained through your trusted channel before accepting it.
This removes a client’s stored trust record; it does not change any server’s host keys. Repeat the cleanup on other clients only where they have a stale entry, and only after verifying the replacement identity.
Rank #3
- Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
- Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
- Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
- Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
- What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.
Rotate genuinely duplicated host keys on a Droplet
Do this only after establishing that the server host keys are actually duplicated or that the affected server identity must be replaced. Keep a trusted administrative route open—such as the DigitalOcean console—so you can recover if SSH access changes. Do not delete authorized_keys, your administrator’s local private key, or unrelated SSH configuration.
- Identify the host-key files configured for
sshd. Common defaults are in/etc/ssh; check the Droplet’s configuration and distribution rather than assuming every installation uses the defaults. - Back up any configuration needed for recovery. Move aside or remove only the confirmed duplicated server host-key private/public pairs.
- Run DigitalOcean’s documented host-key generation command as root:
sudo ssh-keygen -A
OpenSSH defines -A as generating default host keys if they do not already exist. Therefore, running it while duplicate files remain in place will not replace those existing keys; move aside or remove the affected files first. This command concerns server host keys, not user login keys.
Rank #4
- Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
- Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
- Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
- Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
- Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
- Restart or reload the SSH daemon using the service name and command appropriate to the Droplet’s Linux distribution. There is no single service-management command established for every distribution.
- Confirm that the daemon is listening and that the affected Droplets now present distinct, expected fingerprints. Use trusted console access if you cannot confirm this safely over SSH.
- On each client with an old entry, remove that entry only after independently verifying the new fingerprint, then reconnect and accept the verified identity.
Recover if SSH or network access is unavailable
DigitalOcean’s Recovery ISO guide describes a recovery console for cases where the Droplet has lost network access or sshd has failed. Its recovery menu includes option 7, “Clear out Cloud-Init cached data (will regenerate host ssh keys).” Follow the current console flow, and make sure the Droplet has returned to booting from its installed local system before trusting its SSH identity: the recovery environment’s SSH host keys are different.
Reduce the chance of recurrence
DigitalOcean documents that cloud-init consumes user data during a Droplet’s first boot and can configure the server. If identical host keys reappear after image cloning or automated provisioning, inspect image preparation and first-boot steps to confirm each instance receives unique host keys. Treat this as a diagnostic lead, not a proven cause: the cited guidance does not identify a specific cloud-init defect or establish the cause of an individual incident.
Free tools Windows power users keep installed
One-click scans. No signup required.
Best Value
- 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
- Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
- Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
- HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
- What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
Choose the right repair
| Question | Client-side cleanup | Server-side rotation |
|---|---|---|
| What is wrong? | The client has a record for an earlier server at this endpoint. | Two servers present the same host public key, or the server identity needs replacement. |
| Where does the change happen? | On each affected SSH client. | On the affected Droplet, through trusted administration or recovery. |
| What changes? | The client’s stored trust record; server keys stay the same. | The server identity; clients must verify and learn the new fingerprint. |
| Key caution | Verify the endpoint before accepting a new key. | Preserve recovery access and rotate only server host keys. |
Or let it run in the cloud
StreamNeo is a separate service for keeping an uploaded-video YouTube channel live 24/7; it does not repair SSH keys or stream from a camera. Its setup is: upload a recording or build a playlist, add your YouTube stream key once, then go live. Nothing has to stay on at home; uploads stream as made, up to 4K 60fps, at one price per slot; it can automatically recover if YouTube drops the stream. The first day is free with no card. Monthly: $9.99 per month. Learn about StreamNeo or start the free first day.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




