Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Clear Old RSA Keys on VmWare server

Posted on 2008-06-21
6
Medium Priority
?
832 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 20

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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 20

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 2000 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 20

Author Comment

by:compdigit44
ID: 21841223
IT WORKED!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
0

Featured Post

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Question has a verified solution.

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

In this article we will learn how to backup a VMware farm using Nakivo Backup & Replication. In this tutorial we will install the software on a Windows 2012 R2 Server.
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.
Teach the user how to use configure the vCenter Server storage filters Open vSphere Web Client:  Navigate to vCenter Server Advanced Settings: Add the four vCenter Server storage filters: Review the advanced settings: Modify the values of the four v…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

886 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