Skip to content

Allow users to copy ssh pubkey to device

clayton craft requested to merge feature/add_ssh_pubkey into master

@ollieparanoid

I would like to implement this, but I'm unsure how to actually perform the cp ~/.ssh/id_rsa.pub <chroot_rootfs>/home/user/ssh/authorized_keys step since there doesn't seem to be an obvious mechanism in pmb to facilitate copying arbitrary files from outside of a chroot into a chroot. Do you have any recommendations on how to proceed?

Why this PR/effort? SSH password auth is old school, key auth is where it's at! Seriously though, there are many benefits to SSH key authentication compared to password auth!

Merge request reports