diff options
author | Byron Alley <byron@byronalley.com> | 2020-11-01 02:49:44 -0400 |
---|---|---|
committer | David Peter <sharkdp@users.noreply.github.com> | 2020-11-01 09:38:03 +0100 |
commit | bac84b4c8bbb72440423890ffb8221c49c11a986 (patch) | |
tree | 084da9a9d2e20b27a445fbb0b6a01364305bccc6 | |
parent | a5b9a80216fe9fa2bfc586ab02cb1635966c4581 (diff) |
Add sshd_config syntax highlighting test
-rw-r--r-- | tests/syntax-tests/highlighted/SSHD Config/sshd_config | 36 | ||||
-rw-r--r-- | tests/syntax-tests/source/SSHD Config/sshd_config | 36 |
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 @@ +[38;2;117;113;94m#[0m[38;2;117;113;94m This test sshd config file is intended for syntax testing[0m +[38;2;117;113;94m#[0m[38;2;117;113;94m purposes only.[0m +[38;2;117;113;94m#[0m +[38;2;117;113;94m#[0m[38;2;117;113;94m Definitely do not use this in production for sshd.[0m + +[38;2;249;38;114mPort[0m[38;2;248;248;242m [0m[38;2;190;132;255m22[0m + +[38;2;117;113;94m#[0m[38;2;117;113;94m Here's a directive commented out:[0m +[38;2;117;113;94m#[0m[38;2;117;113;94mListenAddress[0m[38;2;117;113;94m 0.0.0.0[0m + +[38;2;249;38;114mListenAddress[0m[38;2;248;248;242m [0m[38;2;190;132;255m127.0.0.1[0m + +[38;2;249;38;114mHostKey[0m[38;2;248;248;242m [0m[38;2;230;219;116m/etc/ssh/ssh_host_rsa_key[0m +[38;2;249;38;114mIgnoreRhosts[0m[38;2;248;248;242m [0m[38;2;190;132;255myes[0m +[38;2;249;38;114mPrintMotd[0m[38;2;248;248;242m [0m[38;2;190;132;255myes[0m +[38;2;249;38;114mX11Forwarding[0m[38;2;248;248;242m [0m[38;2;190;132;255mno[0m +[38;2;249;38;114mAllowAgentForwarding[0m[38;2;248;248;242m [0m[38;2;190;132;255mno[0m +[38;2;249;38;114mPermitRootLogin[0m[38;2;248;248;242m [0m[38;2;230;219;116mforced-commands-only[0m +[38;2;249;38;114mSyslogFacility[0m[38;2;248;248;242m [0m[38;2;230;219;116mAUTH[0m + +[38;2;249;38;114mLogLevel[0m[38;2;248;248;242m [0m[38;2;230;219;116mVERBOSE[0m + +[38;2;249;38;114mAuthorizedKeysFile[0m[38;2;248;248;242m [0m[38;2;230;219;116m/etc/ssh/authorized-keys/[0m[38;2;190;132;255m%u[0m + +[38;2;249;38;114mPasswordAuthentication[0m[38;2;248;248;242m [0m[38;2;190;132;255myes[0m +[38;2;249;38;114mPermitEmptyPasswords[0m[38;2;248;248;242m [0m[38;2;190;132;255mno[0m +[38;2;249;38;114mAllowUsers[0m[38;2;248;248;242m [0m[38;2;230;219;116malice[0m + +[38;2;117;113;94m#[0m[38;2;117;113;94m pass locale information[0m +[38;2;249;38;114mAcceptEnv[0m[38;2;248;248;242m [0m[38;2;230;219;116mLANG LC_[0m[38;2;249;38;114m*[0m + +[38;2;249;38;114mBanner[0m[38;2;248;248;242m [0m[38;2;230;219;116m/etc/sshd_banner[0m + +[38;2;249;38;114mAllowTcpForwarding[0m[38;2;248;248;242m [0m[38;2;190;132;255myes[0m +[38;2;249;38;114mPermitTunnel[0m[38;2;248;248;242m [0m[38;2;190;132;255mno[0m +[38;2;249;38;114mPermitTTY[0m[38;2;248;248;242m [0m[38;2;190;132;255myes[0m 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 |