Created
July 25, 2019 12:28
-
-
Save HuanMeng0/66a1a263c4d4430e84a62310c5185449 to your computer and use it in GitHub Desktop.
wgkey.sh
This file contains 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 | |
privatekey=`wg genkey` | |
echo "Private Key:" ${privatekey} | |
publickey=`echo ${privatekey} | wg pubkey ` | |
echo "Public Key:" ${publickey} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment