Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DESCRIPTION = "ssh private & public key packages"
- PR = "r0"
- LICENSE = "MIT"
- LIC_FILES_CHKSUM = "file://deployed_rsa.pub;beginline=0;endline=1;md5=be9eba56d98b663ef69ffb8543c8f2e6"
- #Note: The keys populated here are just as an example,
- # These keys are no more private.
- # Do not use same keys for your project
- # You are expected to create user own ssh keys to replace these sample keys.
- SRC_URI = "file://deployed_rsa.pub"
- S = "${WORKDIR}"
- USER="root"
- do_install() {
- install -d ${D}/home/${USER}/.ssh/
- install -m 0755 ${S}/deployed_rsa.pub ${D}/home/${USER}/.ssh/authorized_keys
- install -m 0755 ${S}/sshd_config ${D}/etc/ssh/sshd_config
- }
- FILES_${PN} += "/home/${USER}/.ssh/authorized_keys"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement