Remix.run Logo
▲ scandinavian an hour ago

Did anyone get it to work? I tried on the official alpine docker image, enabled password login for root. The shadow entry has ! as password by default, this didn't work with a > 256 character password (i also did passwd -l which also does !). I manually changed it to * and it still didn't work.

Am I doing anything wrong here?

OpenSSH_10.3p1, OpenSSL 3.5.9 29 Sep 2026

PRETTY_NAME="Alpine Linux v3.24"

▲markuman123 2 minutes ago | parent | next [-]

It's because alpine has updated all openssh-server packages already. Even from EOL alpine versions.

▲atmosx 43 minutes ago | parent | prev | next [-]

Nope, wasn’t able to reproduced it in my firecracker VM, which isn’t publicly accessible anyway.

▲f311a 35 minutes ago | parent | prev | next [-]

As far as I understand, it wont work on default setups. You need musl-c, no pam and openssh.

▲zamadatix 14 minutes ago | parent [-]

In Alpine, these would all be the case for an out of the box install with openssh added unless you specifically install openssh-server-pam and configure sshd_config to use PAM (Alpine is already musl-c based and doesn't default to PAM).

▲emayljames 41 minutes ago | parent | prev | next [-]

Did you try one incorrect standard password fail first?

▲hagbard_c 22 minutes ago | parent | prev | next [-]

No, didn't work for me open OpenWRT x64 running in a container but that is probably 'cause I'm using dropbear instead of openssh-server. That's what OpenWRT uses by default so the impact there will be minimal assuming that most installations don't change to openssh-server - it isn't installed by default.

▲q3k 28 minutes ago | parent | prev | next [-]

Also didn't have much luck on Alpine 3.20.10 with OpenSSH_9.7p1 which I've freshly installed from an official ISO.

Last two entries in /etc/shadow:

    test:*:20762:0:99999:7:::
    q3k:$6$snip.GgDQNTrqqX.A0:20762:0:99999:7:::
SSHing into test@ with one 'wrong' password then one 'long' password doesn't work. I have UsePAM no and PasswordAuthentication yes in my sshd_config.
▲ 8 minutes ago | parent | prev | next [-]
[deleted]
▲so_it_be 10 minutes ago | parent | prev [-]

[dead]