Menu

Virtual Geek

Tales from real IT system administrators world and non-production environment

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. 

Related Article: 
Resetting root password in VMware vCenter Server Appliance
vCenter Server Public Key Authentication configuration SSH error received disconnect Too many authentication failures

ssh 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:
Received disconnect from fqdn_or_ip port 22:2: Too many authetication failures
Disconnected from fqdn_or_ip port 22

vmware vcenter vsphere server vcsa appliance vcenter server putty ssh with an embedded platform services controller psc recevied disconnected from too many authentication failures.png

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

vmware vsphere vCenter server .ssh config user identityonly yes hostname ssh error too many authetication failure disconnected from proton os vcsa vcenter server appliance vsphere vcenter putty failed.png

Next when you try to connect through ssh.exe command use additional parameter -o PubkeyAuthentication=no. As you can see login is successful.

Vmware vSphere vCenter server vcsa ssh putty pubkeyauthentication=no root api plugins pi list api list bash shell shell access is granted to root to many authentication failure.png

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

Useful Articles
RESOLVED : FAIL TO DEPLOY OVF TEMPLATE - TASK CANCELED BY USER
VMWare Web Client: Datastore browse files upload copy failed error
Resolved: HP ILO this page cannot be displayed ERR_SSL_BAD_RECORD_MAC_ALERT
Reset/Restart HP ILO (Integrated Lights-outs) using putty
Reset HP ILO password from Esxi server
ESXi HP Blade start issue Enclosure power event detected, System Halted until power condition is corrected
Esxi update individual component firmware on HP hardware: disk degraded not authenticated
Resolved syslog error: Call OptionManager.UpdateValues for object ha-adv-options on ESXi failed
Solved: Esxi server cannot joined into active directory domain
Solved Esxi host disconnected evaluation license expired
Connect-VIServer Error: Invalid server certificate. Use Set-PowerCLIConfiguration

Go Back



Comment

Blog Search

Page Views

11240873

Follow me on Blogarama