From 85a03b758edbb7b29b3d38e8866ef9937ed3197c Mon Sep 17 00:00:00 2001 From: Byron Alley Date: Sun, 1 Nov 2020 02:49:44 -0400 Subject: [PATCH] Add sshd_config syntax highlighting test --- .../highlighted/SSHD Config/sshd_config | 36 +++++++++++++++++++ .../source/SSHD Config/sshd_config | 36 +++++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 tests/syntax-tests/highlighted/SSHD Config/sshd_config create mode 100644 tests/syntax-tests/source/SSHD Config/sshd_config 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 0000000000..d54bfc1c68 --- /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 0000000000..77be3b9f16 --- /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