Skip to content

Instantly share code, notes, and snippets.

@rdh27785
rdh27785 / sshd_config.diff
Created November 20, 2022 11:27
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
@rdh27785
rdh27785 / openssl.cnf.diff
Created May 4, 2022 02:42
diff -uN /etc/ssl/openssl.cnf\~original /etc/ssl/openssl.cnf for Nextcloud with OpenSSL 3
--- /etc/ssl/openssl.cnf~original 2022-03-16 08:35:51.000000000 +0000
+++ /etc/ssl/openssl.cnf 2022-05-04 02:37:30.336530711 +0000
@@ -56,6 +56,7 @@
# List of providers to load
[provider_sect]
default = default_sect
+legacy = legacy_sect
# The fips section name should match the section name inside the
# included fipsmodule.cnf.
# fips = fips_sect

Keybase proof

I hereby claim:

  • I am rdh27785 on github.
  • I am rdh27785 (https://keybase.io/rdh27785) on keybase.
  • I have a public key ASBo9uD4bK-wWPiXJ8myna52WHWJXtdsUaNkQhYuQBKaPAo

To claim this, I am signing this object: