Logging into the clustershell results in "Could not chdir to home directory /var/home/admin"
Applies to
ONTAP
Issue
The following error message is displayed when logging in to the cluster with the admin account:
# ssh admin@10.xx.x.xx
Password:
Could not chdir to home directory /var/home/admin: No such file or directory
The following message might also be observed when logging into the service console:
login: admin
Password:
No home directory.
Logging in with home = "/".
SSH publickey authentication for the admin user account fails and continues to prompt for a password. The following commands and sample outputs show that SSH publickey authentication is enabled for the admin account and a publickey has been installed:
cluster::> security login show -vserver cluster -username admin -application ssh -authmethod publickey
Vserver: cluster
User Name: admin
Application: ssh
Authentication Method: publickey
Role Name: admin
Account Locked: -
Comment Text: -
cluster::> security login publickey show -vserver cluster -username admin
Vserver: cluster
UserName: admin Index: 0
Public Key:
ssh-dss <redacted>
Fingerprint:
<redacted>
Bubblebabble fingerprint:
<redacted>
Comment:
-