Advertisement
Guest User

Untitled

a guest
Nov 14th, 2018
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 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.  
  15. S = "${WORKDIR}"
  16.  
  17. USER="root"
  18.  
  19. do_install() {
  20. install -d ${D}/home/${USER}/.ssh/
  21. install -m 0755 ${S}/deployed_rsa.pub ${D}/home/${USER}/.ssh/authorized_keys
  22. install -m 0755 ${S}/sshd_config ${D}/etc/ssh/sshd_config
  23. }
  24.  
  25. FILES_${PN} += "/home/${USER}/.ssh/authorized_keys"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement