Menu

Virtual Geek

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

VMware Photon OS Remote SSH: Password Authentication Fix

After installing and setup VMware Photon OS in my lab on VM. While doing remote SSH to the Photon OS, my root user login was failing after providing correct password multiple times. In the last it was showing Too many authentication failures.

Screenshot of a PowerShell console showing an SSH connection attempt to root@192.168.34.48 repeatedly failing with 'Too many authentication failures' and a disconnect message.

As remote SSH root login attempt was failing, I thought root password I was provided is incorrect. but when tried directly it on VM console, it logged-in in the first attempt.

Resolution of this issue is PermitRootLogin need to set to yes by editing file /etc/ssh/sshd_config.

Screenshot of a terminal editing the /etc/ssh/sshd_config file on Photon OS, with a red box highlighting the 'PermitRootLogin yes' line and a red arrow pointing to it, indicating a configuration change for SSH authentication.

Once sshd_config file is configured, run below command to restart sshd daemon service, to take effect of the changes.

systemctl restart sshd

Screenshot of a terminal on Photon OS showing the command 'systemctl restart sshd' being executed, confirming the restart of the SSH daemon service.

Test the SSH connection to Photon OS remotely now. As shown in the below screenshot it will be successful.

Screenshot of a PowerShell console showing a successful SSH connection to root@192.168.34.48 on Photon OS, with the terminal now displaying the root user prompt, indicating successful remote login.

Useful Articles
Resetting root password in VMware vCenter Server Appliance
How to reset vCenter Server SSO [email protected] password
vCenter Server SSH received disconnect Too many authentication failures
vCenter Server Public Key Authentication configuration SSH error received disconnect Too many authentication failures
VMware vCenter server vcsa Setting IP IPv6 configuration failed, IP configuration not allowed
PowerCLI The SSL connection could not be established see inner exception
PowerCLi Connect-VIServer could not connect using the requested protocol
VMware vCenter Server Management Exception in invoking authentication handler user password expired
vCenter ui sorry this website doesn't exist 404 not found
Unable to save IP settings Install Stage 2 Set up vCenter Server configuration
VMware vCenter server Error no healthy upstream
VMware PowerCLI Connect-VIserver Could not connect using the requested protocol
VMware PowerCLI The remote server returned an error: (407) Proxy Authentication Required
VMware PowerCLI Connect-VIServer Object reference not set to an instance of an object
VMware PowerCLI esxcli namespace command elements empty no output

Go Back

Comment

Blog Search

Page Views

13060090

Follow me on Blogarama