SSH Public Key Authentication failed...

I installed the HP "hpmgmt-8.0.0-vmware3x.tgz" and configured everything and it reports to the CIM server. Now I am trying to register the host server and I am getting the following error...

SSH Public Key Authentication failed.

And somewhere in the log it says...

SSH public key authentication failed. target system might not be configured. Please run mxagentconfig -a from a commandline window.

I did the following to enable SSH...

vi /etc/ssh/sshd_config

Change the line that says PermitRootLogin from “no” to “yes”

Restart sshd with command /etc/init.d/sshd restart

Any ideas?

0 Kudos
3 Replies

Login to ESX console via SSH.

cd /etc/vmware/ssl

rm * (remove all files - certificates)

service mgmt-vmware restart

That should fix it. It will regenerate the keys and restart the service.


WTF does that have to do with his problem? He's not having issues with VirtualCenter.

What the OP really need to do is configured shared key SSH for the user that he is using, as per the error. Lookup ssh-keygen to set that up, or call HP support for help on how to setup shared keys.


--Matt VCDX #52
0 Kudos


Integrating HPSIM with ESX is not trivial if you wish to maintain your default security stance. Check out for information on how to achieve this as well as maintain your hpsmh connectivity.

Best regards,

Edward L. Haletky

VMware Communities User Moderator


Author of the book 'VMWare ESX Server in the Enterprise: Planning and Securing Virtualization Servers', Copyright 2008 Pearson Education.

CIO Virtualization Blog:

As well as the Virtualization Wiki at

Edward L. Haletky
vExpert XIII: 2009-2021,
VMTN Community Moderator
vSphere Upgrade Saga:
GitHub Repo:
0 Kudos