Advertisement
Guest User

Untitled

a guest
Nov 14th, 2018
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. DESCRIPTION = "ssh private & public key packages"
  2.  
  3. PR = "r0"
  4.  
  5. LICENSE = "MIT"
  6. LIC_FILES_CHKSUM = "file://deployed_rsa.pub;beginline=0;endline=1;md5=be9eba56d98b663ef69ffb8543c8f2e6"
  7.  
  8. #Note: The keys populated here are just as an example,
  9. # These keys are no more private.
  10. # Do not use same keys for your project
  11. # You are expected to create user own ssh keys to replace these sample keys.
  12.  
  13. SRC_URI = "file://deployed_rsa.pub \
  14. file://sshd_config \
  15. "
  16. S = "${WORKDIR}"
  17.  
  18. USER="root"
  19.  
  20. do_install() {
  21. install -d ${D}/home/${USER}/.ssh/
  22. install -m 0755 ${S}/deployed_rsa.pub ${D}/home/${USER}/.ssh/authorized_keys
  23. install -m 0755 ${S}/sshd_config ${D}/etc/ssh/sshd_config
  24. }
  25.  
  26. PACKAGES += "${PN}-client ${PN}-server"
  27.  
  28. FILES_${PN}-server += "/home/${USER}/.ssh/authorized_keys"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement