mirror of
https://github.com/sharkdp/bat
synced 2024-11-18 15:26:16 +00:00
Add sshd_config syntax highlighting test
This commit is contained in:
parent
a5b9a80216
commit
bac84b4c8b
36
tests/syntax-tests/highlighted/SSHD Config/sshd_config
Normal file
36
tests/syntax-tests/highlighted/SSHD Config/sshd_config
Normal file
@ -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
|
36
tests/syntax-tests/source/SSHD Config/sshd_config
Normal file
36
tests/syntax-tests/source/SSHD Config/sshd_config
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user