System Grab Bag

View all TLDR pages from Linux (or from all pages)

wg

Manage the configuration of WireGuard interfaces. More information: https://www.wireguard.com/quickstart/.
  • Check status of currently active interfaces:
    sudo wg
  • Generate a new private key:
    wg genkey
  • Generate a public key from a private key:
    wg pubkey < {{path/to/private_key}} > {{path/to/public_key}}
  • Generate a public and private key:
    wg genkey | tee {{path/to/private_key}} | wg pubkey > {{path/to/public_key}}
  • Show the current configuration of a wireguard interface:
    sudo wg showconf {{wg0}}

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.