Wireguard Peer Configuration (pub/private key)

Hi,

I am new to Mikrotik, I am trying to configure wireguard peer configuration. On Debian system I can generate using below command and populate the private key details and public key (which later I will put in Mikrotik peer configuration) and send the configuration file to the user.


$ wg genkey | tee privatekey | wg pubkey > publickey

How to run that command in Mikrotik? I am not able to get into shell to run it.

Thanks

You dont really need to, In the MT wireguard configuration, the router will generate both a private and public key for you.
You only need to export the public key to client devices for their use in peer settings.