Received: from mail-40130.protonmail.ch (mail-40130.protonmail.ch [185.70.40.130]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 1013A780CF7 for <~alpine/users@lists.alpinelinux.org>; Sat, 1 Oct 2022 16:18:29 +0000 (UTC) Date: Sat, 01 Oct 2022 16:18:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1664641107; x=1664900307; bh=wLKlrTp4p8qesr7qKgP4zlpTbt3zcGTFPZDZTG2uQGQ=; h=Date:To:From:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID; b=prL+OgoX6eU+PHmDv2k3nEbNZMcX0uRwFGG204Dl8S1DSToqgBnxHxNonjhT5uIzv pi5eVpP4XHGKf5bv9Dvjck772yCtczztYGTR509JZExfyvlW1y9slIS4Ljfn1AbyJC ScV75snPXvIfnruG8ed8CELkGnBJjf/3bAO83IVjvT5hnJd4x2keVBr95s3vmYY8X6 1pMyY4ZAlbX8z0FqK67oJJBIoTvcUrS5aWLqwdo63DjFzufZD8ZnZKaTqtJ/kJee9C VtYLqlXEyqTEYuXKwjJ1DC5IK/uIOzzzvxHdL24KaRH45SuiKLGDBwewBXCtPPjoFc 9Ju/rxkoXkaTQ== To: "~alpine/users@lists.alpinelinux.org" <~alpine/users@lists.alpinelinux.org> From: roesch.eric@protonmail.com Subject: Issues setting up SSH key on Raspberry Pi Message-ID: Feedback-ID: 12482913:user:proton MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha512; boundary="------48f3b1a6dbc51ed6028cd7a6fe304a21c260918108b99e5bdf35af9f7d08f0f0"; charset=utf-8 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------48f3b1a6dbc51ed6028cd7a6fe304a21c260918108b99e5bdf35af9f7d08f0f0 Content-Type: multipart/mixed;boundary=---------------------18c56d68221356dcab9cd3c2a4eb9292 -----------------------18c56d68221356dcab9cd3c2a4eb9292 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain;charset=utf-8 Hi, I'm trying to set up Alpine Linux on my Raspberry Pi 3 Model B, but can't seem to get key-based authentication (for SSH) to work. I'm following the instructions from the wiki[1]; specifically, I have - formatted my SD card as FAT via GNOME Disks, - downloaded alpine-rpi-3.16.2-aarch64.tar.gz and extracted it to the root of the card and - downloaded headless.apkovl.tar.gz[2] and placed it in the root of the card. I then logged in via SSH, ran `setup-alpine` and went through various configuration steps, until it asked me whether I wanted to allow root SSH login. I chose the default of "prohibit-password", to which it asked me for an SSH key, which I entered. It then asked me for a key again, which I thought was weird, but I just chalked it up to the possibility of adding multiple keys, so I went with the default of none. I uploaded the full output of the `setup-alpine` command here[3]. After the command finished, I ran `lbu commit -d`, followed by `reboot`. I then waited for the Pi to come online again and tried to connect via SSH, specifying the key file (`ssh root@192.168.178.59 -i id_ed25519`), but was prompted to input a password instead. That didn't work either, probably because I chose "prohibit-password" earlier. So... what am I missing? I noticed that there was no .authorized_keys file being written (at least not to /root/.ssh). I tried to manually create it and save the changes via `lbu commit -d`, but to no avail. Thanks in advance! =E2=80=93 Sunny [1]: https://wiki.alpinelinux.org/wiki/Raspberry_Pi [2]: https://github.com/macmpi/alpine-linux-headless-bootstrap [3]: https://bin.disroot.org/?acd36e22ebf52923#ApJPTu7yM3csBTzGoDm8z97pM3T= icXQw4YYP1VJy4Mdk -----------------------18c56d68221356dcab9cd3c2a4eb9292-- --------48f3b1a6dbc51ed6028cd7a6fe304a21c260918108b99e5bdf35af9f7d08f0f0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: ProtonMail wnUEARYKAAYFAmM4aDkAIQkQE3eiN9haZLIWIQTdx97mF7SwrIpCU5sTd6I3 2Fpksl6lAQCuJtA4/quAnESOtpo0LNm1MvUpy+ueaYBIIr0vibfvHAD8CNW3 Dx3i+CJV48Uxez9gUhpJ+6SMVPckMWfdP7m5vgo= =LDhm -----END PGP SIGNATURE----- --------48f3b1a6dbc51ed6028cd7a6fe304a21c260918108b99e5bdf35af9f7d08f0f0--