The locked account set a password as '!' which prevents login with ssh keys on only Alpine Linux. Setting the hashed password to '*' still prevents ssh login with passwords but no longer blocks ssh keys.