Friday, April 19, 2024
Google search engine
HomeVirtualizationvCenter Server SSH received disconnect Too many authentication failures

vCenter Server SSH received disconnect Too many authentication failures

While connecting to vCenter Server Appliance with ssh command I was facing error Too many authentication failures disconnect. I checked ssh settings on the VCSA photon os from VM console but didnt find any issue.

$ ssh [email protected]

VMware vCenter Server 7.0.3.00300

Type: vCenter Server with an embedded Platform Services Controller

Received disconnect from 10.10.10.10 port 22:2: Too many authentication failures
Disconnected from 10.10.10.10 port 22

Finally to resolve this issue I created a file config under C:\Users\Profile\.ssh folder and added below entries for my vCenter Server. Specifically the IdentitiesOnly to yes. You can find the below url about ssh_config for more details.

# Read more about SSH config files: https://linux.die.net/man/5/ssh_config
Host vCenter_or_IP
  Hostname vCenter_or_IP
  IdentitiesOnly yes

Next when you try to connect through ssh.exe command use additional parameter -o PubkeyAuthentication=no. As you can see login is successful.
vCenter Server SSH received disconnect Too many authentication failures

ssh -o PubkeyAuthentication=no root@fqdn_or_ip

VMware vCenter Server x.x.x.xxxxx

Type: vCenter Server with an embedded Platform Services Controller

root@fqdn_or_ip's password:
Connected to service

    * List APIs: "help api list"
    * List Plugins: "help pi list"
    * Launch BASH: "shell"

Command> shell
Shell access is granted to root

hope this helps!

YOU CAN SUPPORT DEVNINJA WITH A CUP OF COFFEE

As we continue to grow, we would wish to reach and impact more people who visit and take advantage of the guides we have on our blog. This is a big task for us and we are so far extremely grateful for the kind people who have shown amazing support for our work over the time we have been online. to search or browse the published articles available FREELY to all.

If you like what you are reading, please consider buying us a coffee ( or more ) as a token of appreciation.

Support Us

DevNinja
DevNinja
System & Network Administrator Ninja
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

2 × 2 =

- Advertisment -
Google search engine

Most Popular

Recent Comments