The following error occurs when attempting to connect to a node on a Tanzu Kubernetes cluster via SSH and log in with the vmware-system-user account:
# ssh vmware-system-user@###.###.###.###
(vmware-system-user@###.###.###.###) Password:
Your account has expired; please contact your system administrator.
VMware vSphere Kubernetes Service
This is caused by the expiration of the vmware-system-user account.
chage -l vmware-system-user
chage -m 0 -M -1 vmware-system-user
chage -l vmware-system-user
※ Sample:
vmware-system-user@nodename [ ~ ]$ chage -l vmware-system-user
:::
Password expires : MM DD, YYYY
:::
Account expires : MM DD, YYYY
:::
vmware-system-user@nodename [ ~ ]$ sudo chage -m 0 -M -1 vmware-system-user
vmware-system-user@nodename [ ~ ]$ chage -l vmware-system-user
:::
Password expires : never
:::
Account expires : never
:::
reboot -f
As a workaround, you can clear the expiration of the vmware-system-user account by following the resolution steps in the KB article below.
vmware-system-user account expired on vSphere Supervisor Workload Cluster Nodes (319375)
Japanese KB: Tanzu Kubernetes クラスタノードに vmware-system-user アカウントでログインすると "Your account has expired" エラーが表示される (427378)