k
Вот так говорит man 5 shadow в Centos
If the password field contains some string that is not a valid result of crypt(3), for instance ! or *, the user will
not be able to use a unix password to log in (but the user may log in the system by other means).
A password field which starts with an exclamation mark means that the password is locked.
При этом, в Centos с ! в shadow ssh пускает по ключу. Но если переключить в /etc/ssh/sshd_config
На UsePAM no, то пускать перестает.
В Alpine по умолчанию UsePAM no и включить просто так не получится
/etc/ssh/sshd_config line 82: Unsupported option UsePAM
В общем, не похоже это на баг, на самом деле.
Выходит это баг openssh, в виду непредопределённого поведения?