r/AlpineLinux • u/WBurnham • Oct 03 '25
Dropbear
I have Dropbear ssh server running on an Alpine installation on a Raspberry Pi Zero 2 W. I can ssh into it using a password. Unfortunately, I'm having trouble making it accept a public key connection. Does anyone know of a good guide?
I did generate a key pair on the client, created /.ssh/authorized_keys on the server, copied a public key, set up chmod for the directory and the file, restarted dropbear service. Tried from a Windows machine (keygen in powershell) and from a Linux laptop.
3
Upvotes
3
u/WBurnham Oct 03 '25
thank you all for your recommendations. a bit of a sleepless night but I figured it out. quite a stupid mistake on my part. when I pasted the key I accidentally warped the text line...
2
u/ipsirc Oct 03 '25
https://github.com/mkj/dropbear?tab=readme-ov-file#in-the-absence-of-detailed-documentation-some-notes-follow
Does it generate openssh format keys or dropbear format keys?
2
u/steverikli Oct 03 '25
Simple troubleshooting first: try connecting with
ssh -vand also look at syslog messages for sshd. The client ssh debug output and log messages on the server are often informative.2
u/hron84 Oct 03 '25
That's the problem. The .ssh folder should go to the user's home by default, so in case of the "root" user, to /root/.ssh/authorized_keys
0
u/SinkLeakOnFleek Oct 03 '25
give ssh-copy-id from the client machine a try