summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorByron Alley <byron@byronalley.com>2020-11-01 02:49:44 -0400
committerDavid Peter <sharkdp@users.noreply.github.com>2020-11-01 09:38:03 +0100
commitbac84b4c8bbb72440423890ffb8221c49c11a986 (patch)
tree084da9a9d2e20b27a445fbb0b6a01364305bccc6
parenta5b9a80216fe9fa2bfc586ab02cb1635966c4581 (diff)
Add sshd_config syntax highlighting test
-rw-r--r--tests/syntax-tests/highlighted/SSHD Config/sshd_config36
-rw-r--r--tests/syntax-tests/source/SSHD Config/sshd_config36
2 files changed, 72 insertions, 0 deletions
diff --git a/tests/syntax-tests/highlighted/SSHD Config/sshd_config b/tests/syntax-tests/highlighted/SSHD Config/sshd_config
new file mode 100644
index 00000000..d54bfc1c
--- /dev/null
+++ b/tests/syntax-tests/highlighted/SSHD Config/sshd_config
@@ -0,0 +1,36 @@
+# This test sshd config file is intended for syntax testing
+# purposes only.
+#
+# Definitely do not use this in production for sshd.
+
+Port 22
+
+# Here's a directive commented out:
+#ListenAddress 0.0.0.0
+
+ListenAddress 127.0.0.1
+
+HostKey /etc/ssh/ssh_host_rsa_key
+IgnoreRhosts yes
+PrintMotd yes
+X11Forwarding no
+AllowAgentForwarding no
+PermitRootLogin forced-commands-only
+SyslogFacility AUTH
+
+LogLevel VERBOSE
+
+AuthorizedKeysFile /etc/ssh/authorized-keys/%u
+
+PasswordAuthentication yes
+PermitEmptyPasswords no
+AllowUsers alice
+
+# pass locale information
+AcceptEnv LANG LC_*
+
+Banner /etc/sshd_banner
+
+AllowTcpForwarding yes
+PermitTunnel no
+PermitTTY yes
diff --git a/tests/syntax-tests/source/SSHD Config/sshd_config b/tests/syntax-tests/source/SSHD Config/sshd_config
new file mode 100644
index 00000000..77be3b9f
--- /dev/null
+++ b/tests/syntax-tests/source/SSHD Config/sshd_config
@@ -0,0 +1,36 @@
+# This test sshd config file is intended for syntax testing
+# purposes only.
+#
+# Definitely do not use this in production for sshd.
+
+Port 22
+
+# Here's a directive commented out:
+#ListenAddress 0.0.0.0
+
+ListenAddress 127.0.0.1
+
+HostKey /etc/ssh/ssh_host_rsa_key
+IgnoreRhosts yes
+PrintMotd yes
+X11Forwarding no
+AllowAgentForwarding no
+PermitRootLogin forced-commands-only
+SyslogFacility AUTH
+
+LogLevel VERBOSE
+
+AuthorizedKeysFile /etc/ssh/authorized-keys/%u
+
+PasswordAuthentication yes
+PermitEmptyPasswords no
+AllowUsers alice
+
+# pass locale information
+AcceptEnv LANG LC_*
+
+Banner /etc/sshd_banner
+
+AllowTcpForwarding yes
+PermitTunnel no
+PermitTTY yes