21
submitted 1 day ago* (last edited 1 day ago) by eta@feddit.org to c/linux@lemmy.ml

So I am experimenting with running a Pi Zero 2w with Alpine Linux as a headless server on my home network and so far I've succeeded in flashing the sd card and connecting via ssh via the documentation for setup on raspberry pis and the documentation for headless setup. But after I run "setup-alpine" and reboot I can't get access via ssh since I get "Permission denied" after entering the password trying to log into root or a user account.

So far I've had a look at setting "PermitRootLogin" in /etc/sshd/sshd_config to "yes" and that seems to work, however after a reboot the pi is somehow not visible anymore over the network. I also asked AI and it said that by default Alpine uses dropbear for ssh instead of openssh and the latter could be more strict when it comes to permissions. I'm not so familiar with the workings of ssh so it may just be me doing something wrong or forgetting something during the so I'm asking if anyone here has is familiar with the process or has an idea.

Edit: I solved it by actually setting up the wlan0 interface with the network name and password during the "setup-alpine" this time and now it works. Before I thought that this was not necessary since I was already connected to the Pi via Wifi but apparently during install the wpa_supplicant.conf and the already working interface is not saved and after a reboot the wlan0 interface is therefore not enabled anymore.

For documentation: I set up the sd card with Raspberry Pi Imager selecting Alpine Linux in there. Then I copied the headless apkovl file from the git repo and wpa_supplicant to the root directory of the sd card and booted up the pi. After that I logged into root via ssh and ran "setup-alpine", configuring the wlan0 interface and using the mmcblk0 disk for a sys installation.

Also not that after the reboot and when using openssh you can't log in as root with a password since that is not allowed. You have to set up a user account.

you are viewing a single comment's thread
view the rest of the comments
[-] eta@feddit.org 1 points 18 hours ago

I did read the wiki which has a lot of great guides and that is how I got to boot the Pi headlessly in the first place. However when it comes to bug fixing it's not really helpful and searching the web also didn't give good results so I asked the AI. But in the end that also didn't help and I figured it out by watching a YouTube video.

this post was submitted on 10 Jan 2026
21 points (100.0% liked)

Linux

57274 readers
639 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS