codekingpro/portable-devtools
114k
1" Vim syntax file2" Language: OpenSSH server configuration file (sshd_config)3" Author: David Necas (Yeti)4" Maintainer: Jakub Jelen <jakuje at gmail dot com>5" Previous Maintainer: Dominik Fischer <d dot f dot fischer at web dot de>6" Contributor: Thilo Six7" Contributor: Leonard Ehrenfried <leonard.ehrenfried@web.de>8" Contributor: Karsten Hopp <karsten@redhat.com>9" Contributor: Fionn Fitzmaurice (github.com/fionn)10" Originally: 2009-07-0911" Last Change: 2026-03-1112" SSH Version: 10.1p113"14 15" Setup16" quit when a syntax file was already loaded17if exists("b:current_syntax")18 finish19endif20 21setlocal iskeyword=_,-,a-z,A-Z,48-5722 23 24" case on25syn case match26 27 28" Comments29syn match sshdconfigComment "^#.*$" contains=sshdconfigTodo30syn match sshdconfigComment "\s#.*$" contains=sshdconfigTodo31 32syn keyword sshdconfigTodo TODO FIXME NOTE contained33 34" Constants35syn keyword sshdconfigYesNo yes no none36 37syn keyword sshdconfigAddressFamily any inet inet638 39syn keyword sshdconfigPrivilegeSeparation sandbox40 41syn keyword sshdconfigTcpForwarding local remote42 43syn keyword sshdconfigRootLogin prohibit-password without-password forced-commands-only44 45syn keyword sshdconfigPubkeyAuthOptions touch-required verify-required46 47syn keyword sshdconfigCiphers 3des-cbc48syn keyword sshdconfigCiphers blowfish-cbc49syn keyword sshdconfigCiphers cast128-cbc50syn keyword sshdconfigCiphers arcfour51syn keyword sshdconfigCiphers arcfour12852syn keyword sshdconfigCiphers arcfour25653syn keyword sshdconfigCiphers aes128-cbc54syn keyword sshdconfigCiphers aes192-cbc55syn keyword sshdconfigCiphers aes256-cbc56syn match sshdconfigCiphers "\<rijndael-cbc@lysator\.liu.se\>"57syn keyword sshdconfigCiphers aes128-ctr58syn keyword sshdconfigCiphers aes192-ctr59syn keyword sshdconfigCiphers aes256-ctr60syn match sshdconfigCiphers "\<aes128-gcm@openssh\.com\>"61syn match sshdconfigCiphers "\<aes256-gcm@openssh\.com\>"62syn match sshdconfigCiphers "\<chacha20-poly1305@openssh\.com\>"63 64syn keyword sshdconfigMAC hmac-sha165syn keyword sshdconfigMAC hmac-sha1-9666syn keyword sshdconfigMAC hmac-sha2-25667syn keyword sshdconfigMAC hmac-sha2-51268syn keyword sshdconfigMAC hmac-md569syn keyword sshdconfigMAC hmac-md5-9670syn match sshdconfigMAC "\<hmac-ripemd160\%(@openssh\.com\)\?\>"71syn match sshdconfigMAC "\<umac-64@openssh\.com\>"72syn match sshdconfigMAC "\<umac-128@openssh\.com\>"73syn match sshdconfigMAC "\<hmac-sha1-etm@openssh\.com\>"74syn match sshdconfigMAC "\<hmac-sha1-96-etm@openssh\.com\>"75syn match sshdconfigMAC "\<hmac-sha2-256-etm@openssh\.com\>"76syn match sshdconfigMAC "\<hmac-sha2-512-etm@openssh\.com\>"77syn match sshdconfigMAC "\<hmac-md5-etm@openssh\.com\>"78syn match sshdconfigMAC "\<hmac-md5-96-etm@openssh\.com\>"79syn match sshdconfigMAC "\<hmac-ripemd160-etm@openssh\.com\>"80syn match sshdconfigMAC "\<umac-64-etm@openssh\.com\>"81syn match sshdconfigMAC "\<umac-128-etm@openssh\.com\>"82 83syn keyword sshdconfigHostKeyAlgo ssh-ed2551984syn match sshdconfigHostKeyAlgo "\<ssh-ed25519-cert-v01@openssh\.com\>"85syn match sshdconfigHostKeyAlgo "\<sk-ssh-ed25519@openssh\.com\>"86syn match sshdconfigHostKeyAlgo "\<sk-ssh-ed25519-cert-v01@openssh\.com\>"87syn keyword sshdconfigHostKeyAlgo ssh-rsa88syn keyword sshdconfigHostKeyAlgo rsa-sha2-25689syn keyword sshdconfigHostKeyAlgo rsa-sha2-51290syn keyword sshdconfigHostKeyAlgo ssh-dss91syn keyword sshdconfigHostKeyAlgo ecdsa-sha2-nistp25692syn keyword sshdconfigHostKeyAlgo ecdsa-sha2-nistp38493syn keyword sshdconfigHostKeyAlgo ecdsa-sha2-nistp52194syn match sshdconfigHostKeyAlgo "\<ssh-rsa-cert-v01@openssh\.com\>"95syn match sshdconfigHostKeyAlgo "\<rsa-sha2-256-cert-v01@openssh\.com\>"96syn match sshdconfigHostKeyAlgo "\<rsa-sha2-512-cert-v01@openssh\.com\>"97syn match sshdconfigHostKeyAlgo "\<ssh-dss-cert-v01@openssh\.com\>"98syn match sshdconfigHostKeyAlgo "\<ecdsa-sha2-nistp256-cert-v01@openssh\.com\>"99syn match sshdconfigHostKeyAlgo "\<ecdsa-sha2-nistp384-cert-v01@openssh\.com\>"100syn match sshdconfigHostKeyAlgo "\<ecdsa-sha2-nistp521-cert-v01@openssh\.com\>"101syn match sshdconfigHostKeyAlgo "\<sk-ecdsa-sha2-nistp256@openssh\.com\>"102syn match sshdconfigHostKeyAlgo "\<sk-ecdsa-sha2-nistp256-cert-v01@openssh\.com\>"103 104syn keyword sshdconfigRootLogin prohibit-password without-password forced-commands-only105 106syn keyword sshdconfigLogLevel QUIET FATAL ERROR INFO VERBOSE107syn keyword sshdconfigLogLevel DEBUG DEBUG1 DEBUG2 DEBUG3108syn keyword sshdconfigSysLogFacility DAEMON USER AUTH AUTHPRIV LOCAL0 LOCAL1109syn keyword sshdconfigSysLogFacility LOCAL2 LOCAL3 LOCAL4 LOCAL5 LOCAL6 LOCAL7110 111syn keyword sshdconfigCompression delayed112 113syn match sshdconfigIPQoS "\<af[1-4][1-3]\>"114syn match sshdconfigIPQoS "\<cs[0-7]\>"115syn keyword sshdconfigIPQoS ef le116syn keyword sshdconfigIPQoSDeprecated lowdelay throughput reliability117 118syn keyword sshdconfigKexAlgo diffie-hellman-group1-sha1119syn keyword sshdconfigKexAlgo diffie-hellman-group14-sha1120syn keyword sshdconfigKexAlgo diffie-hellman-group14-sha256121syn keyword sshdconfigKexAlgo diffie-hellman-group16-sha512122syn keyword sshdconfigKexAlgo diffie-hellman-group18-sha512123syn keyword sshdconfigKexAlgo diffie-hellman-group-exchange-sha1124syn keyword sshdconfigKexAlgo diffie-hellman-group-exchange-sha256125syn keyword sshdconfigKexAlgo ecdh-sha2-nistp256126syn keyword sshdconfigKexAlgo ecdh-sha2-nistp384127syn keyword sshdconfigKexAlgo ecdh-sha2-nistp521128syn keyword sshdconfigKexAlgo mlkem768x25519-sha256129syn keyword sshdconfigKexAlgo mlkem768nistp256-sha256130syn keyword sshdconfigKexAlgo mlkem1024nistp384-sha384131 132syn match sshdconfigKexAlgo "\<curve25519-sha256\%(@libssh\.org\)\?\>"133syn match sshdconfigKexAlgo "\<sntrup4591761x25519-sha512@tinyssh\.org\>"134syn match sshdconfigKexAlgo "\<sntrup761x25519-sha512@openssh\.com\>"135 136syn keyword sshdconfigTunnel point-to-point ethernet137 138syn keyword sshdconfigSubsystem internal-sftp139 140syn match sshdconfigVar "%[CDFfhiKksTtUu]\>"141syn match sshdconfigVar "%%"142 143syn match sshdconfigSpecial "[*?]"144 145syn match sshdconfigNumber "\<\d\+\>"146syn match sshdconfigHostPort "\<\(\d\{1,3}\.\)\{3}\d\{1,3}\(:\d\+\)\?\>"147syn match sshdconfigHostPort "\<\([-a-zA-Z0-9]\+\.\)\+[-a-zA-Z0-9]\{2,}\(:\d\+\)\?\>"148" FIXME: this matches quite a few things which are NOT valid IPv6 addresses149syn match sshdconfigHostPort "\<\(\x\{,4}:\)\+\x\{,4}:\d\+\>"150syn match sshdconfigTime "\<\(\d\+[sSmMhHdDwW]\)\+\>"151 152 153" case off154syn case ignore155 156 157" Keywords158" Also includes RDomain, but that is a keyword.159syn keyword sshdconfigMatch Host User Group Address LocalAddress LocalPort160 161syn keyword sshdconfigKeyword AcceptEnv162syn keyword sshdconfigKeyword AddressFamily163syn keyword sshdconfigKeyword AllowAgentForwarding164syn keyword sshdconfigKeyword AllowGroups165syn keyword sshdconfigKeyword AllowStreamLocalForwarding166syn keyword sshdconfigKeyword AllowTcpForwarding167syn keyword sshdconfigKeyword AllowUsers168syn keyword sshdconfigKeyword AuthenticationMethods169syn keyword sshdconfigKeyword AuthorizedKeysCommand170syn keyword sshdconfigKeyword AuthorizedKeysCommandUser171syn keyword sshdconfigKeyword AuthorizedKeysFile172syn keyword sshdconfigKeyword AuthorizedPrincipalsCommand173syn keyword sshdconfigKeyword AuthorizedPrincipalsCommandUser174syn keyword sshdconfigKeyword AuthorizedPrincipalsFile175syn keyword sshdconfigKeyword Banner176syn keyword sshdconfigKeyword CASignatureAlgorithms177syn keyword sshdconfigKeyword ChallengeResponseAuthentication178syn keyword sshdconfigKeyword ChannelTimeout179syn keyword sshdconfigKeyword ChrootDirectory180syn keyword sshdconfigKeyword Ciphers181syn keyword sshdconfigKeyword ClientAliveCountMax182syn keyword sshdconfigKeyword ClientAliveInterval183syn keyword sshdconfigKeyword Compression184syn keyword sshdconfigKeyword DebianBanner185syn keyword sshdconfigKeyword DenyGroups186syn keyword sshdconfigKeyword DenyUsers187syn keyword sshdconfigKeyword DisableForwarding188syn keyword sshdconfigKeyword ExposeAuthInfo189syn keyword sshdconfigKeyword FingerprintHash190syn keyword sshdconfigKeyword ForceCommand191syn keyword sshdconfigKeyword GatewayPorts192syn keyword sshdconfigKeyword GSSAPIAuthentication193syn keyword sshdconfigKeyword GSSAPICleanupCredentials194syn keyword sshdconfigKeyword GSSAPIEnablek5users195syn keyword sshdconfigKeyword GSSAPIKexAlgorithms196syn keyword sshdconfigKeyword GSSAPIKeyExchange197syn keyword sshdconfigKeyword GSSAPIStoreCredentialsOnRekey198syn keyword sshdconfigKeyword GSSAPIDelegateCredentials199syn keyword sshdconfigKeyword GSSAPIStrictAcceptorCheck200syn keyword sshdconfigKeyword HostbasedAcceptedAlgorithms201syn keyword sshdconfigKeyword HostbasedAuthentication202syn keyword sshdconfigKeyword HostbasedUsesNameFromPacketOnly203syn keyword sshdconfigKeyword HostCertificate204syn keyword sshdconfigKeyword HostKey205syn keyword sshdconfigKeyword HostKeyAgent206syn keyword sshdconfigKeyword HostKeyAlgorithms207syn keyword sshdconfigKeyword IgnoreRhosts208syn keyword sshdconfigKeyword IgnoreUserKnownHosts209syn keyword sshdconfigKeyword Include210syn keyword sshdconfigKeyword IPQoS211syn keyword sshdconfigKeyword KbdInteractiveAuthentication212syn keyword sshdconfigKeyword KerberosAuthentication213syn keyword sshdconfigKeyword KerberosGetAFSToken214syn keyword sshdconfigKeyword KerberosOrLocalPasswd215syn keyword sshdconfigKeyword KerberosTicketCleanup216syn keyword sshdconfigKeyword KexAlgorithms217syn keyword sshdconfigKeyword ListenAddress218syn keyword sshdconfigKeyword LoginGraceTime219syn keyword sshdconfigKeyword LogLevel220syn keyword sshdconfigKeyword LogVerbose221syn keyword sshdconfigKeyword MACs222syn keyword sshdconfigKeyword Match223syn keyword sshdconfigKeyword MaxAuthTries224syn keyword sshdconfigKeyword MaxSessions225syn keyword sshdconfigKeyword MaxStartups226syn keyword sshdconfigKeyword ModuliFile227syn keyword sshdconfigKeyword PAMServiceName228syn keyword sshdconfigKeyword PasswordAuthentication229syn keyword sshdconfigKeyword PermitEmptyPasswords230syn keyword sshdconfigKeyword PermitListen231syn keyword sshdconfigKeyword PermitOpen232syn keyword sshdconfigKeyword PermitRootLogin233syn keyword sshdconfigKeyword PermitTTY234syn keyword sshdconfigKeyword PermitTunnel235syn keyword sshdconfigKeyword PermitUserEnvironment236syn keyword sshdconfigKeyword PermitUserRC237syn keyword sshdconfigKeyword PerSourceMaxStartups238syn keyword sshdconfigKeyword PerSourceNetBlockSize239syn keyword sshdconfigKeyword PerSourcePenalties240syn keyword sshdconfigKeyword PerSourcePenaltyExemptList241syn keyword sshdconfigKeyword PidFile242syn keyword sshdconfigKeyword Port243syn keyword sshdconfigKeyword PrintLastLog244syn keyword sshdconfigKeyword PrintMotd245syn keyword sshdconfigKeyword PubkeyAcceptedAlgorithms246syn keyword sshdconfigKeyword PubkeyAcceptedKeyTypes247syn keyword sshdconfigKeyword PubkeyAuthentication248syn keyword sshdconfigKeyword PubkeyAuthOptions249syn keyword sshdconfigKeyword RDomain250syn keyword sshdconfigKeyword RefuseConnection251syn keyword sshdconfigKeyword RekeyLimit252syn keyword sshdconfigKeyword RequiredRSASize253syn keyword sshdconfigKeyword RevokedKeys254syn keyword sshdconfigKeyword SecurityKeyProvider255syn keyword sshdconfigKeyword SetEnv256syn keyword sshdconfigKeyword SshdAuthPath257syn keyword sshdconfigKeyword SshdSessionPath258syn keyword sshdconfigKeyword StreamLocalBindMask259syn keyword sshdconfigKeyword StreamLocalBindUnlink260syn keyword sshdconfigKeyword StrictModes261syn keyword sshdconfigKeyword Subsystem262syn keyword sshdconfigKeyword SyslogFacility263syn keyword sshdconfigKeyword TCPKeepAlive264syn keyword sshdconfigKeyword TrustedUserCAKeys265syn keyword sshdconfigKeyword UnusedConnectionTimeout266syn keyword sshdconfigKeyword UseDNS267syn keyword sshdconfigKeyword UsePAM268syn keyword sshdconfigKeyword VersionAddendum269syn keyword sshdconfigKeyword X11DisplayOffset270syn keyword sshdconfigKeyword X11Forwarding271syn keyword sshdconfigKeyword X11MaxDisplays272syn keyword sshdconfigKeyword X11UseLocalhost273syn keyword sshdconfigKeyword XAuthLocation274 275 276" Define the default highlighting277 278hi def link sshdconfigComment Comment279hi def link sshdconfigTodo Todo280hi def link sshdconfigHostPort sshdconfigConstant281hi def link sshdconfigTime Number282hi def link sshdconfigNumber Number283hi def link sshdconfigConstant Constant284hi def link sshdconfigYesNo Boolean285hi def link sshdconfigAddressFamily sshdconfigEnum286hi def link sshdconfigPrivilegeSeparation sshdconfigEnum287hi def link sshdconfigTcpForwarding sshdconfigEnum288hi def link sshdconfigCiphers sshdconfigEnum289hi def link sshdconfigMAC sshdconfigEnum290hi def link sshdconfigHostKeyAlgo sshdconfigEnum291hi def link sshdconfigRootLogin sshdconfigEnum292hi def link sshdconfigLogLevel sshdconfigEnum293hi def link sshdconfigSysLogFacility sshdconfigEnum294hi def link sshdconfigVar sshdconfigEnum295hi def link sshdconfigCompression sshdconfigEnum296hi def link sshdconfigIPQoS sshdconfigEnum297hi def link sshdconfigIPQoSDeprecated sshdconfigDeprecated298hi def link sshdconfigKexAlgo sshdconfigEnum299hi def link sshdconfigTunnel sshdconfigEnum300hi def link sshdconfigSubsystem sshdconfigEnum301hi def link sshdconfigPubkeyAuthOptions sshdconfigEnum302hi def link sshdconfigEnum Function303hi def link sshdconfigSpecial Special304hi def link sshdconfigKeyword Keyword305hi def link sshdconfigMatch Type306hi def link sshdconfigDeprecated Error307 308let b:current_syntax = "sshdconfig"309 310" vim:set ts=8 sw=2 sts=2:311 