logoalt Hacker News

scandinavian • today at 12:59 PM • 11 replies • view on HN

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"


Replies

markuman123 • today at 1:56 PM

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

➕ show 2 replies
atmosx • today at 1:14 PM

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

f311a • today at 1:22 PM

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

➕ show 1 reply
emayljames • today at 1:16 PM

Did you try one incorrect standard password fail first?

q3k • today at 1:29 PM

EDIT: works after downgrading OpenSSH, turns out even EOL Alpine version got updated packages!

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.
hagbard_c • today at 1:35 PM

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.

justinsaccount • today at 2:00 PM

I can't reproduce it either. I used alpine:3.24.1 and openssh is openssh-server-10.3_p1-r2

I tried adding PermitRootLogin yes and PasswordAuthentication yes. Tried adding another user with a valid password.

Verified shadow entry has a *. Can't login as root or a test user. Tried another incorrect password first as well.

edit: can reproduce after `git revert 384e25e6bd1f2e7b30095900e48b570d46953510` in aports and rebuilding openssh without the fix. It also accepts the password on the 2nd+ attempt, NOT the first.

ryanw02 • today at 2:25 PM

[dead]

so_it_be • today at 1:47 PM

[dead]