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.

20 lines
546 B

  1. #!/bin/bash
  2. #
  3. cd ../vpn-server/
  4. echo "Copying client1 config file from vpn server vm.."
  5. scp -i .vagrant/machines/default/virtualbox/private_key -P 22112 vagrant@localhost:~/client-configs/files/client1* .
  6. mv -v client1* ../client
  7. cd ../client
  8. echo "Copying client config file to client vm.."
  9. scp -i .vagrant/machines/default/virtualbox/private_key -P 22111 client1.ovpn vagrant@localhost:~
  10. echo "Copying connect script.."
  11. scp -i .vagrant/machines/default/virtualbox/private_key -P 22111 ../setups/attacker/connect.sh vagrant@localhost:~