OpenSecurity/bin/create-cert-and-iso.sh
author dyle@opensecurity.d03.arc.local
Wed, 29 Jan 2014 09:23:52 +0000
changeset 53 01839f13cef3
child 240 d7ef04254e9c
permissions -rw-r--r--
SSH cert and ISO creation with shadowrun.exe
     1 #!/bin/sh
     2 
     3 # create a ssh-key pair in the current folder
     4 # and create a ISO image with it
     5 
     6 VM_NAME=$(basename "$(pwd)")
     7 echo ${VM_NAME}
     8 
     9 mkdir .ssh &> /dev/null
    10 ssh-keygen -q -t rsa -N "" -C "${VM_NAME}" -f dvm_key &> /dev/null
    11 chmod 500 dvm_key
    12 mv dvm_key.pub .ssh/authorized_keys
    13 genisoimage -J -R -o "${VM_NAME}.iso" .ssh
    14