The CARR script states “Invalid password” after providing the admin or root credentials for one or more appliances
search cancel

The CARR script states “Invalid password” after providing the admin or root credentials for one or more appliances

book

Article ID: 427208

calendar_today

Updated On:

Products

VMware NSX VMware vSphere ESXi

Issue/Introduction

  • When running the CARR script to replace expired/expiring passwords in NSX Manager, the following message appears:

Enter '<site_name> site: <IP_address> root password (will not be displayed): 
Invalid password for <IP_address>, please check password and try again

  • SSH login as admin and as root cannot be achieved on at least one NSX Manager node in a cluster or for any Global or Local (site) Manager appliance in a Federated environment if the script is run on a Global NSX Manager.

    • Verify by attempting to open an SSH session as the root user to the IP address where Invalid Password was indicated or by accessing it via a console and running command (as the admin user): get service ssh 



  • On a few other scenarios, SSH may be enabled but port 22 connectivity between the appliances on other sites or LM to GM or vice-versa fail.

    This cane be verified by running the command (via root shell from where the CARR is executed): curl -v telnet://<Target_IP>:22

Environment

VMware NSX

Cause

  1. Appliance Configuration: SSH service or 'root-login' is disabled on one or more NSX Manager nodes.
  2. Network Environment: Port 22 (SSH) communication is blocked by a physical firewall or network security group between the manager where the script is executed and the target manager (Local or Global).

Resolution

Ensure that the SSH service as well as root SSH login is enabled and reachable on all NSX Manager instances.
New attempts to run the CARR script can use different nodes from an NSX Manager cluster, so don't just check/update the one indicated in the error. Refer to Enable ssh root access for NSX appliances for instructions.

Step 1: Verify Appliance Settings

Log into each NSX Manager as the admin user (via console if SSH is unavailable) and run:

  1. get service ssh —  this will tell you if the SSH service is running ("Service state") and if using root to login via SSH ("Root login) is enabled.
  2. start service ssh — enables the SSH connection to the appliance. Login as admin and other users besides root will also show Connection Refused when attempting to SSH to the manager node if SSH service is not enabled.
  3. set ssh root-login — enables SSH as the root user (different from connecting as admin and using command "st en" to switch to root).

Step 2: Verify Network Connectivity

If SSH is enabled but login still fails with "Invalid password" or "Connection Refused":

  1. Verify bidirectional communication on Port 22 between all Local and Global Managers.
  2. Check physical firewalls or network ACLs to ensure Port 22 is not being dropped.
  3. Test connectivity from the CLI of the manager running the script using: curl -v telnet://<Target_IP>:22

Additional Information