Solved

Clear Old RSA Keys on VmWare server

Posted on 2008-06-21
6
816 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
ID: 21838408
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
ID: 21838993
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
ID: 21839062
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
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
LVL 19

Author Comment

by:compdigit44
ID: 21839117
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
ID: 21839132
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
ID: 21841223
IT WORKED!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Last article we focus in how to VMware: How to create and use VMs TAGs – Part 1 so before follow this article and perform the next tasks, you should read the first article how to create the TAG before using them in Veeam Backup Jobs.
This article outlines why you need to choose a backup solution that protects your entire environment – including your VMware ESXi and Microsoft Hyper-V virtualization hosts – not just your virtual machines.
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

809 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