on master help sign in
Add sshd_config syntax highlighting test
commitbac84b4c8bbb72440423890ffb8221c49c11a986 authorByron Alley <byron@byronalley.com> dateSun 1 Nov 2020, 02:49 (6 years ago) parenta5b9a80
2 files changed+72
tests/syntax-tests/highlighted/SSHD Config/sshd_config+36 tests/syntax-tests/source/SSHD Config/sshd_config+36
tests/syntax-tests/highlighted/SSHD Config/sshd_confignew file+36
@@ -0,0 +1,36 @@
1+# This test sshd config file is intended for syntax testing
2+# purposes only.
3+#
4+# Definitely do not use this in production for sshd.
5+
6+Port 22
7+
8+# Here's a directive commented out:
9+#ListenAddress 0.0.0.0
10+
11+ListenAddress 127.0.0.1
12+
13+HostKey /etc/ssh/ssh_host_rsa_key
14+IgnoreRhosts yes
15+PrintMotd yes
16+X11Forwarding no
17+AllowAgentForwarding no
18+PermitRootLogin forced-commands-only
19+SyslogFacility AUTH
20+
21+LogLevel VERBOSE
22+
23+AuthorizedKeysFile /etc/ssh/authorized-keys/%u
24+
25+PasswordAuthentication yes
26+PermitEmptyPasswords no
27+AllowUsers alice
28+
29+# pass locale information
30+AcceptEnv LANG LC_*
31+
32+Banner /etc/sshd_banner
33+
34+AllowTcpForwarding yes
35+PermitTunnel no
36+PermitTTY yes
tests/syntax-tests/source/SSHD Config/sshd_confignew file+36
@@ -0,0 +1,36 @@
1+# This test sshd config file is intended for syntax testing
2+# purposes only.
3+#
4+# Definitely do not use this in production for sshd.
5+
6+Port 22
7+
8+# Here's a directive commented out:
9+#ListenAddress 0.0.0.0
10+
11+ListenAddress 127.0.0.1
12+
13+HostKey /etc/ssh/ssh_host_rsa_key
14+IgnoreRhosts yes
15+PrintMotd yes
16+X11Forwarding no
17+AllowAgentForwarding no
18+PermitRootLogin forced-commands-only
19+SyslogFacility AUTH
20+
21+LogLevel VERBOSE
22+
23+AuthorizedKeysFile /etc/ssh/authorized-keys/%u
24+
25+PasswordAuthentication yes
26+PermitEmptyPasswords no
27+AllowUsers alice
28+
29+# pass locale information
30+AcceptEnv LANG LC_*
31+
32+Banner /etc/sshd_banner
33+
34+AllowTcpForwarding yes
35+PermitTunnel no
36+PermitTTY yes