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

#!/bin/bash
#
cd ../vpn-server/
echo "Copying client1 config file from vpn server vm.."
scp -i .vagrant/machines/default/virtualbox/private_key -P 22119 vagrant@localhost:~/client-configs/files/client1* .
mv -v client1* ../client
cd ../client
echo "Copying client config file to client vm.."
scp -i .vagrant/machines/default/virtualbox/private_key -P 22111 client1.ovpn vagrant@localhost:~
echo "Copying connect script.."
scp -i .vagrant/machines/default/virtualbox/private_key -P 22111 ../setups/attacker/connect.sh vagrant@localhost:~