Starting vRealize Operations Manager from the admin UI fails with the error: Permission denied (publickey,password)
search cancel

Starting vRealize Operations Manager from the admin UI fails with the error: Permission denied (publickey,password)

book

Article ID: 340589

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

Symptoms:
  • Cannot start vRealize Operations Manager (formerly known as vCenter Operations Manager) from the admin UI
  • Starting vRealize Operations Manager from the admin UI fails
  • You see the error:

Permission denied (publickey,password). Permission denied, please try again.

  • Attempting to start vRealize Operations from the UI virtual machine using the vcops-admin start command prompts you for the root user's password on the Analytics VM (secondvm-internal).
  • When you enter the password, the command succeeds and vRealize Operations starts successfully


Cause

This issue occurs if the contents of the id_rsa.pub file on the UI virtual machine does not match the contents of the authorized_keys file on the Analytics virtual machine.
There is a public key exchange setup between the UI virtual machine and the Analtyics virtual machines during deployment, such that the root user and the admin user do not need to enter a password when connecting from one virtual machine to the another using SSH. This exchange is controlled by the id_rsa.pub and authorized_keys files in the .ssh directory for each user. If this configuration is altered in any way, vRealize Operations Manager (formerly known as vCenter Operations Manager) fails to function properly.

Resolution

To resolve this issue, ensure that the contents of the id_rsa.pub file on the UI virtual machine and the authorized_keys file on the Analytics virtual machine match.
To ensure that the contents of these files match:
  1. Open a console to the UI virtual machine and log in as the root user.
  2. Change to the .ssh folder using this command:

cd ~/.ssh

  1. Make a copy of the id_rsa.pub file and the authorized_keys file using a command similar to:

cp id_rsa.pub id_rsa.pub.orig;cp authorized_keys authorized_keys.orig

  1. Open a console to the Analytics virtual machine and log in as the root user.
  2. Change to the .ssh folder using this command:

cd ~/.ssh

  1. Make a copy of the id_rsa.pub file and the authorized_keys file using a command similar to:

cp id_rsa.pub id_rsa.pub.orig;cp authorized_keys authorized_keys.orig

  1. On the UI virtual machine, copy the id_rsa.pub file to the Analytics VM as authorized_keys:

scp id_rsa.pub secondvm-external:~/.ssh/authorized_keys

  1. On the Analytics virtual machine, copy the id_rsa.pub file to the Analytics VM as authorized_keys:

scp id_rsa.pub firstvm-external:~/.ssh/authorized_keys

  1. On the UI virtual machine, run this command to start vRealize Operations Manager (formerly known as vCenter Operations Manager) if it has not already been started:

vcops-admin start