SSH service gets stopped in NSX manager node associated with cluster VIP when password rotation task is performed from SDDC.
Command to check NSX manager cluster VIP
nsx-mngr> get cluster vip
The SSH disablement is as per the design. Password management would disable SSH after password operations.
Password management does the following :
1. Enables SSH
2. Updates the password (tests the password updated or rotated using SSH)
3. Disables SSH
auth.log :
**********
#.#.#.# = SDDC IP
log$ less auth.log* | grep -i "pam_unix" | grep -i ssh
YYYY-MM-DDTHH:MM:SS+Z sshd 27372 - - pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=#.#.#.# user=root
YYYY-MM-DDTHH:MM:SS+Z sshd 10531 - - pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=#.#.#.# user=root
proxy log :
************
NSX is receiving POST API /api/v1/node/services/ssh?action=stop from SDDC IP x.x.x.x as part of the design workflow.
proxy$ less localhost_access_log* | grep -i "/api/v1/node/services/ssh?action=stop"
YYYY-MM-DDTHH:MM:SS+Z #.#.#.# - "POST /api/v1/node/services/ssh?action=stop HTTP/1.1" 200 160 1629 1629
YYYY-MM-DDTHH:MM:SS+Z #.#.#.# - "POST /api/v1/node/services/ssh?action=stop HTTP/1.1" 200 160 1888 1887
SDDC log :
*************
YYYY-MM-DDTHH:MM:SS+Z DEBUG [0000000000000000,0000] [c.v.v.p.helper.NsxtApiUtil,Thread-501] Status from stop SSH service API for NSXT of domain is : 200 OK
Workaround :
root@nsx-mngr:~# service ssh restart
Managing Local User Accounts : Managing Local User Accounts
For information related to NSX local node users, please refer KB - Error while executing command for user audit in NSX Manager CLI