Solved

Clear Old RSA Keys on VmWare server

Posted on 2008-06-21
6
810 Views
Last Modified: 2008-06-22
I'm connecting to my VMware server using Putty my server is cashing the old server's RSA key. How do I clear the RSA key's from my server?
0
Comment
Question by:compdigit44
  • 3
  • 3
6 Comments
 
LVL 14

Expert Comment

by:agriesser
Comment Utility
What machine does cache what RSA key?
Could you be a bit more precise, please?

The RSA key for SSH connections on VMware server is generated once after the ssh package has been installed. Usually you don't need to change this key (only if the hostname changes). Is this the case?
0
 
LVL 19

Author Comment

by:compdigit44
Comment Utility
I'm connecting to my remote vmware server via Putty from my Windows XP workstation. I had to do a format reinstall on this vmware server it has the same name but the key has changed
0
 
LVL 14

Expert Comment

by:agriesser
Comment Utility
And now you're getting a warning about a potential security breach when PuTTY tries to connect to your VMware server? Usually clicking on "Yes, I'm sure" or something like this when this warnings arrives fixes this issue as it'll automatically overwrite the old key.

To clear PuTTY's keys, you have to delete them out of the registry.
To do that, click "Start" -> "Run" and type "regedit".

Go to HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\SshHostKeys and delete the keys in question.
0
Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

 
LVL 19

Author Comment

by:compdigit44
Comment Utility
I just tried it but it didn't work. This is the messge that I'm getting on the remote system:
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending key in /root/.ssh/known_hosts:1
0
 
LVL 14

Accepted Solution

by:
agriesser earned 500 total points
Comment Utility
Ah, ok, you're getting this message on a linux machine.
Open the file /root/.ssh/known_hosts with your favourite editor and delete the first line (sometimes you also need to delete the second line too, depending on the OpenSSH version used).

Save the changes to this file and try again.
0
 
LVL 19

Author Comment

by:compdigit44
Comment Utility
IT WORKED!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

When we have a dead host and we lose all connections to the ESXi, and we need to find a way to move all VMs from that dead ESXi host.
HOW TO: Upload an ISO image to a VMware datastore for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere Host Client, and checking its MD5 checksum signature is correct.  It's a good idea to compare checksums, because many installat…
Teach the user how to edit .vmx files to add advanced configuration options Open vSphere Web Client: Edit Settings for a VM: Choose VM Options -> Advanced: Add Configuration Parameters:
Advanced tutorial on how to run the esxtop command to capture a batch file in csv format in order to export the file and use it for performance analysis. He demonstrates how to download the file using a vSphere web client (or vSphere client) and exp…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now