Skip to content
Discussion options

You must be logged in to vote

Yes, this is a footgun of the not-quite-ideal implementation of ssh keys we built back when initially testing + to allow adding new keys without reflashing

There are actually three locations where the authorized_keys file is stored

  1. /authorized_keys - which is part of the rootfs and thus gets flashed, but also is read only
  2. /mnt/misc/authorized_keys - which is not being flashed, but r/w and persistent
  3. /tmp/.ssh/authorized_keys - which is the HOME dir where dropbear expects the keyfile + is als a tmpfs

On boot, If 2 is empty, 1 is being copied to 2. After that, 2 is being copied to 3.
So if you want changes to persist, you need to modify 2.

There is no special logic in place that would add…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@94ritkan
Comment options

Answer selected by 94ritkan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants