COS
Expert
Expert

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
RParker
Immortal
Immortal

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.

mcowger
Immortal
Immortal

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

--Matt VCDX #52 blog.cowger.us
0 Kudos
Texiwill
Leadership
Leadership

Hello,

Integrating HPSIM with ESX is not trivial if you wish to maintain your default security stance. Check out http://www.astroarch.com/wiki/index.php/HPSIM_and_ESX 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: http://www.cio.com/blog/index/topic/168354

As well as the Virtualization Wiki at http://www.astroarch.com/wiki/index.php/Virtualization

--
Edward L. Haletky
vExpert XIII: 2009-2021,
VMTN Community Moderator
vSphere Upgrade Saga: https://www.astroarch.com/blogs
GitHub Repo: https://github.com/Texiwill
0 Kudos