X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/b04fe171f0375ecd5d8a24747ca1dff85720a0ca..6b200bc335dc93c5516ccb52f14bd896d8c7fad7:/OSX/sec/SOSCircle/CloudKeychainProxy/scripts/soscopysshkeys diff --git a/OSX/sec/SOSCircle/CloudKeychainProxy/scripts/soscopysshkeys b/OSX/sec/SOSCircle/CloudKeychainProxy/scripts/soscopysshkeys deleted file mode 100755 index 9f555e92..00000000 --- a/OSX/sec/SOSCircle/CloudKeychainProxy/scripts/soscopysshkeys +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/zsh - -echo 'Copying ssh keys to devices' - -sshopts=(-o CheckHostIP=no -o StrictHostKeyChecking=no -o NoHostAuthenticationForLocalhost=yes -o UserKnownHostsFile=/dev/null) - -locations=(`mobdev list | awk '/UDID/ { gsub(/^(.*location ID = )+|(,.*)+$/, ""); print}'`) - -port_offset=20000 - -mkdir -p /var/tmp/roothome/.ssh/ -cat ~/.ssh/id_*.pub > /var/tmp/roothome/.ssh/authorized_keys - -for location in $locations -do - echo 'Copying to location '"$location" - - tcprelay --portoffset $port_offset --locationid $location ssh --quiet & - - (( sshport = $port_offset + 22 )) - - echo "Copying file to device (via port $sshport)" - scp -r -P $sshport $sshopts /var/tmp/roothome/.ssh root@localhost:/var/root/ - - kill -HUP %% -done