Connected by Droplet to a wireguard VPN and now I can't ssh back into it

Posted February 19, 2020 2.6k views

Hello! I recently installed and configured wireguard on my Toronto-based droplet. I went to start wireguard using this command:

wg-quick up [configuration-file]

It connected successfully but my SSH connection to my droplet terminated and now I can’t connect back into my droplet using the IP provided to me. How can I both enable wireguard on my droplet while still being able to connect to it via SSH?


  • Just a quick recommendation: I recommend you use Debian 10 instead of Ubuntu. Most of the commands are the same but Debian has been giving me less issues.

    Note: I’m also from Toronto!

  • Did you ever figure this out? I’m trying to setup wireguard and running into the same issue… My droplet is currently a Debian 10.5 image.

Submit an answer

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!