You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
519 B

  1. ## These instruction are sent to ``dupd`` on target image (doodba)
  2. set -ex
  3. mkdir -p /root/.ssh
  4. curl https://docker.0k.io/get/vm_git_access_id_rsa > /root/.ssh/id_rsa || {
  5. echo "Fatal: Could not retrieve http://docker.0k.io/get/vm_git_access_id_rsa ..." >&2
  6. exit 1
  7. }
  8. ## Not so usefull as it is public !
  9. chmod 0600 /root/.ssh/id_rsa
  10. ssh-keyscan -H -p 10022 git.0k.io > /root/.ssh/known_hosts
  11. chmod 600 /root/.ssh/known_hosts
  12. cat <<EOF > /root/.ssh/config
  13. Host git.0k.io
  14. User vm-user
  15. Port 10022
  16. EOF