Skip to content

SSH keys not saved across reboots #9

@MustBeArt

Description

@MustBeArt

There is a mechanism in the boot script firmware/ori/board/pluto/S21misc that enables SSH keys stored in the volatile RAM copy of /root/.ssh/authorized_keys to be saved in the JFFS2 filesystem and restored after a reboot. This is very convenient for automated testing and also for interactive debugging at a shell prompt. Typically, the user would use ssh-copy-id on their local host to place their public key into authorized_keys on the Pluto, and then run the command device_persistent_keys on the Pluto. See analogdevicesinc/buildroot#43

This mechanism is not working on our build, apparently because we have an authorized_keys file in an overlay. Here: firmware/ori/board/pluto/overlay/root/.ssh/authorized_keys

That file from the overlay overwrites the restored authorized_keys file immediately upon reboot, defeating the ability to make non-volatile changes to the authorized keys database. I believe the fix is simply to delete that file from the repo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions