Skip to content

Instantly share code, notes, and snippets.

@chriselsen
Created May 20, 2020 19:37
Show Gist options
  • Save chriselsen/9571dc2dc71131bbd69827b33df6ba1d to your computer and use it in GitHub Desktop.
Save chriselsen/9571dc2dc71131bbd69827b33df6ba1d to your computer and use it in GitHub Desktop.
#!/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