Skip to content

Instantly share code, notes, and snippets.

@rdh27785
Created November 20, 2022 11:27
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 rdh27785/2559af3af43764065ac741ccbb284df3 to your computer and use it in GitHub Desktop.
Save rdh27785/2559af3af43764065ac741ccbb284df3 to your computer and use it in GitHub Desktop.
In the sshd_config installed on Vultr's VPS, "PasswordAuthentication yes" and "PermitRootLogin yes" are written at the end, so you need to delete them. Don't worry, you can log in as root from the Vultr console.
--- /etc/ssh/sshd_config~vultr 2022-11-09 07:34:55.287648773 +0000
+++ /etc/ssh/sshd_config 2022-11-09 11:12:23.028639067 +0000
@@ -120,6 +120,6 @@
# AllowTcpForwarding no
# PermitTTY no
# ForceCommand cvs server
-PasswordAuthentication yes
-PermitRootLogin yes
+#PasswordAuthentication yes
+#PermitRootLogin yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment