analogdevicesinc / buildroot

Buildroot is a simple, efficient and easy-to-use tool to generate embedded Linux systems through cross-compilation. Forked from https://git.busybox.net/buildroot/
Other
38 stars 59 forks source link

Store ssh authorized_keys in jffs2 #43

Closed dj1an closed 4 years ago

dj1an commented 4 years ago

Allows persistent passwordless login to the pluto device.

# on your local machine
ssh-keygen 
ssh-copy-id root@pluto.local # login with your password
ssh root@pluto.local # should be no password prompt

# on your pluto device
device_format_jffs2 # if not done already
device_persistent_keys # stores host and user pubkey on jffs2
mhennerich commented 4 years ago

Hmm - was this PR unintentional? A similar patch is already merged: https://github.com/analogdevicesinc/buildroot/commit/2ee30e36870e6c5de8d86de9cc5977e41ffddad6

dj1an commented 4 years ago

hi, it only stores passwd files and the host key, no public key from authorized_keys or am i overseeing something?

mhennerich commented 4 years ago

Ups - my fault

mhennerich commented 4 years ago

looks good - but please add your Signed-off-by tag for the commits https://www.kernel.org/doc/html/v4.17/process/submitting-patches.html#sign-your-work-the-developer-s-certificate-of-origin

dj1an commented 4 years ago

thanks. hope it's correct now?

mhennerich commented 4 years ago

The tags should go into each of the the commit messages... So that they become part of the git log.

dj1an commented 4 years ago

Hope it's OK now?

mhennerich commented 4 years ago

No that's not what I meant. Sorry to bother you with this, but it's the requirement for excepting external PRs.

In your tree:

git rebase -i HEAD~4

Remove the two last empty commits and chose reword on the first two. Save and close. Now add your tags (save and close).

Then simply force push (-f) your tree, and this PR gets automatically updated.

dj1an commented 4 years ago

I am sorry, was not familiar with the right git commands. Should fit your requirements now.

commodo commented 4 years ago

will merge in a couple of days if no objection