SSH connection refused with the alpine 3.19 builder-image
Issue Description
Dropbear (same for sshd) does not accept connections when building with env DEFAULT_DROPBEAR_ENABLED=true
on branch 3.19 for aarch64
and raspberry pi zero w 2.
Not tested on different architecture. I tried replacing dropbear with sshd
from package openssh
with same result.
Steps to reproduce
- Clone and checkout branch 3.19
- Build image with
docker build -t builder .
- Create empty build directory somewhere and
cd
into it. - Enable and configure wifi with input script according to input/stages/60/06-wifi.sh
- Create
output
directory - Create
test.env
with contentDEFAULT_KERNEL_MODULES=* DEFAULT_DROPBEAR_ENABLED=true ARCH=aarch64 RPI_FIRMWARE_BRANCH=alpine ALPINE_BRANCH=v3.19
- Build with
docker run --rm -it -v $PWD/output:/output -v $PWD/input:/input --env-file test.env localhost/builder
- Extract
output/sdcard.img.gz
and flash image to SD-card. - Boot RPi with flashed SD-card.
- Try to connect with
ssh root@<IP-ADDRESS>
and get responsessh: connect to host <IP-ADDRESS> port 22: Connection refused
Edited by Tobias Nils Ackermann