Skip to content

Instantly share code, notes, and snippets.

@rasulkireev
Created June 26, 2022 18:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rasulkireev/9784f6b981abd8c63ef72475e26c6f24 to your computer and use it in GitHub Desktop.
Save rasulkireev/9784f6b981abd8c63ef72475e26c6f24 to your computer and use it in GitHub Desktop.

Make sure you have Droplet Access enabled. If you see something like below, make sure to install/enable it first.

image

Once done, login into the droplet, and run the following commands:

  • sudo systemctl disable ssh.service to disable it on startup
  • sudo systemctl stop ssh.service to stop the current one
  • sudo systemctl mask ssh.service. This makes systemd unit files a symlink to /dev/null, so any start attempts will fail.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment