Created
May 20, 2020 19:37
-
-
Save chriselsen/9571dc2dc71131bbd69827b33df6ba1d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo add-apt-repository ppa:wireguard/wireguard -y | |
sudo apt-get update && sudo apt-get upgrade -y | |
sudo apt install wireguard -y | |
cd | |
umask 077 | |
wg genkey | tee privatekey | wg pubkey > publickey |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment