robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
aa1d8a2702
master
1" Vim syntax file 2" Language: OpenSSH client configuration file (ssh_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: Leonard Ehrenfried <leonard.ehrenfried@web.de> 7" Karsten Hopp <karsten@redhat.com> 8" Dean, Adam Kenneth <adam.ken.dean@hpe.com> 9" Last Change: 2026 Mar 31 10" SSH Version: 10.1p1 11" 2026 Sep 19 by Vim project: Add UseKeychain keyword #21339 12" 2026 Sep 27 by Vim project: update secure keywords #21376 13" 2026 Sep 28 by Vim project: fix typo #21390 14" 2026 Sep 28 by Vim project: update syntax file #21387 15" 16 17" Setup 18" quit when a syntax file was already loaded 19if exists ( "b:current_syntax" ) 20finish 21endif 22 23syn iskeyword _,-,a-z,A-Z,48-57 24 25 26" case on 27syn case match 28 29 30" Comments 31syn match sshconfigComment "^#. * $ "contains = sshconfigTodo 32syn match sshconfigComment "\s#. * $ "contains = sshconfigTodo 33 34syn keyword sshconfigTodo TODO FIXME NOTE contained 35 36 37" Constants 38syn keyword sshconfigYesNo yes no ask confirm 39syn keyword sshconfigYesNo any auto 40syn keyword sshconfigYesNo force autoask none 41 42syn keyword sshconfigCipher 3des blowfish 43 44syn keyword sshconfigCiphers 3des -cbc 45syn keyword sshconfigCiphersDeprecated blowfish -cbc cast128-cbc arcfour arcfour128 arcfour256 46syn keyword sshconfigCiphers aes128 -cbc 47syn keyword sshconfigCiphers aes192 -cbc 48syn keyword sshconfigCiphers aes256 -cbc 49syn match sshconfigCiphersDeprecated "\<rijndael-cbc@lysator\.liu\.se\> " 50syn keyword sshconfigCiphers aes128 -ctr 51syn keyword sshconfigCiphers aes192 -ctr 52syn keyword sshconfigCiphers aes256 -ctr 53syn match sshconfigCiphers "\<aes128-gcm@openssh\.com\> " 54syn match sshconfigCiphers "\<aes256-gcm@openssh\.com\> " 55syn match sshconfigCiphers "\<chacha20-poly1305@openssh\.com\> " 56 57syn keyword sshconfigMAC hmac -sha1 58syn keyword sshconfigMAC hmac -sha1-96 59syn keyword sshconfigMAC hmac -sha2-256 60syn keyword sshconfigMAC hmac -sha2-512 61syn keyword sshconfigMAC hmac -md5 62syn keyword sshconfigMAC hmac -md5-96 63syn match sshconfigMACDeprecated "\<hmac-ripemd160\%(@openssh\.com\)\?\> " 64syn match sshconfigMAC "\<umac-64@openssh\.com\> " 65syn match sshconfigMAC "\<umac-128@openssh\.com\> " 66syn match sshconfigMAC "\<hmac-sha1-etm@openssh\.com\> " 67syn match sshconfigMAC "\<hmac-sha1-96-etm@openssh\.com\> " 68syn match sshconfigMAC "\<hmac-sha2-256-etm@openssh\.com\> " 69syn match sshconfigMAC "\<hmac-sha2-512-etm@openssh\.com\> " 70syn match sshconfigMAC "\<hmac-md5-etm@openssh\.com\> " 71syn match sshconfigMAC "\<hmac-md5-96-etm@openssh\.com\> " 72syn match sshconfigMACDeprecated "\<hmac-ripemd160-etm@openssh\.com\> " 73syn match sshconfigMAC "\<umac-64-etm@openssh\.com\> " 74syn match sshconfigMAC "\<umac-128-etm@openssh\.com\> " 75 76syn keyword sshconfigHostKeyAlgo ssh -mldsa44-ed25519 77syn keyword sshconfigHostKeyAlgo ssh -mldsa44-ed25519-cert 78syn keyword sshconfigHostKeyAlgo ssh -ed25519 79syn match sshconfigHostKeyAlgo "\<ssh-ed25519-cert-v01@openssh\.com\> " 80syn match sshconfigHostKeyAlgo "\<sk-ssh-ed25519@openssh\.com\> " 81syn match sshconfigHostKeyAlgo "\<sk-ssh-ed25519-cert-v01@openssh\.com\> " 82syn keyword sshconfigHostKeyAlgo ssh -rsa 83syn keyword sshconfigHostKeyAlgo rsa -sha2-256 84syn keyword sshconfigHostKeyAlgo rsa -sha2-512 85syn keyword sshconfigHostKeyAlgoDeprecated ssh -dss 86syn keyword sshconfigHostKeyAlgo ecdsa -sha2-nistp256 87syn keyword sshconfigHostKeyAlgo ecdsa -sha2-nistp384 88syn keyword sshconfigHostKeyAlgo ecdsa -sha2-nistp521 89syn match sshconfigHostKeyAlgo "\<\%(webauthn-\)\?sk-ecdsa-sha2-nistp256@openssh\.com\> " 90syn match sshconfigHostKeyAlgo "\<ssh-rsa-cert-v01@openssh\.com\> " 91syn match sshconfigHostKeyAlgo "\<rsa-sha2-256-cert-v01@openssh\.com\> " 92syn match sshconfigHostKeyAlgo "\<rsa-sha2-512-cert-v01@openssh\.com\> " 93syn match sshconfigHostKeyAlgoDeprecated "\<ssh-dss-cert-v01@openssh\.com\> " 94syn match sshconfigHostKeyAlgo "\<ecdsa-sha2-nistp256-cert-v01@openssh\.com\> " 95syn match sshconfigHostKeyAlgo "\<ecdsa-sha2-nistp384-cert-v01@openssh\.com\> " 96syn match sshconfigHostKeyAlgo "\<ecdsa-sha2-nistp521-cert-v01@openssh\.com\> " 97syn match sshconfigHostKeyAlgo "\<\%(webauthn-\)\?sk-ecdsa-sha2-nistp256-cert-v01@openssh\.com\> " 98 99syn keyword sshconfigPreferredAuth hostbased publickey password gssapi -with-mic 100syn keyword sshconfigPreferredAuth keyboard -interactive 101 102syn keyword sshconfigLogLevel QUIET FATAL ERROR INFO VERBOSE 103syn keyword sshconfigLogLevel DEBUG DEBUG1 DEBUG2 DEBUG3 104syn keyword sshconfigSysLogFacility DAEMON USER AUTH AUTHPRIV LOCAL0 LOCAL1 105syn keyword sshconfigSysLogFacility LOCAL2 LOCAL3 LOCAL4 LOCAL5 LOCAL6 LOCAL7 106syn keyword sshconfigAddressFamily inet inet6 107 108syn match sshconfigIPQoS "\<af [ 1-4 ][ 1-3 ] \> " 109syn match sshconfigIPQoS "\<cs [ 0-7 ] \> " 110syn keyword sshconfigIPQoS ef le 111syn keyword sshconfigIPQoSDeprecated lowdelay throughput reliability 112syn keyword sshconfigKbdInteractive bsdauth pam skey 113 114syn keyword sshconfigKexAlgo diffie -hellman-group1-sha1 115syn keyword sshconfigKexAlgo diffie -hellman-group14-sha1 116syn keyword sshconfigKexAlgo diffie -hellman-group-exchange-sha1 117syn keyword sshconfigKexAlgo diffie -hellman-group-exchange-sha256 118syn keyword sshconfigKexAlgo diffie -hellman-group16-sha512 119syn keyword sshconfigKexAlgo diffie -hellman-group18-sha512 120syn keyword sshconfigKexAlgo diffie -hellman-group14-sha256 121syn keyword sshconfigKexAlgo ecdh -sha2-nistp256 122syn keyword sshconfigKexAlgo ecdh -sha2-nistp384 123syn keyword sshconfigKexAlgo ecdh -sha2-nistp521 124syn match sshconfigKexAlgo "\<curve25519-sha256\%(@libssh\.org\)\?\> " 125syn match sshconfigKexAlgo "\<sntrup761x25519-sha512\%(@openssh\.com\)\?\> " 126syn keyword sshconfigKexAlgo mlkem768x25519 -sha256 127 128syn keyword sshconfigTunnel point -to-point ethernet 129 130syn match sshconfigVar "% [ CdfHhIijKkLlnprTtu ] \> " 131syn match sshconfigVar "%% " 132syn match sshconfigSpecial "[ *? ] " 133syn match sshconfigNumber "\<\d\+\> " 134syn match sshconfigHostPort "\<\(\d\{1,3}\.\)\{3}\d\{1,3}\(:\d\+\)\?\> " 135syn match sshconfigHostPort "\<\( [ -a-zA-Z0-9 ] \+\.\)\+ [ -a-zA-Z0-9 ] \{2,}\(:\d\+\)\?\> " 136syn match sshconfigHostPort "\<\(\x\{,4}:\)\+\x\{,4} [ :/ ] \d\+\> " 137syn match sshconfigHostPort "\<\c\(Host \+\)\@<=.\+ " 138syn match sshconfigHostPort "\<\c\(Hostname \+\)\@<=.\+ " 139 140" case off 141syn case ignore 142 143 144" Keywords 145syn keyword sshconfigHostSect Host 146 147syn keyword sshconfigMatch canonical final exec localnetwork host originalhost tagged user localuser all 148 149syn keyword sshconfigKeyword AddKeysToAgent 150syn keyword sshconfigKeyword AddressFamily 151syn keyword sshconfigKeyword BatchMode 152syn keyword sshconfigKeyword BindAddress 153syn keyword sshconfigKeyword BindInterface 154syn keyword sshconfigKeyword CanonicalDomains 155syn keyword sshconfigKeyword CanonicalizeFallbackLocal 156syn keyword sshconfigKeyword CanonicalizeHostname 157syn keyword sshconfigKeyword CanonicalizeMaxDots 158syn keyword sshconfigKeyword CanonicalizePermittedCNAMEs 159syn keyword sshconfigKeyword CASignatureAlgorithms 160syn keyword sshconfigKeyword CertificateFile 161syn keyword sshconfigKeyword ChannelTimeout 162syn keyword sshconfigKeyword CheckHostIP 163syn keyword sshconfigKeyword Ciphers 164syn keyword sshconfigKeyword ClearAllForwardings 165syn keyword sshconfigKeyword Compression 166syn keyword sshconfigKeyword ConnectionAttempts 167syn keyword sshconfigKeyword ConnectTimeout 168syn keyword sshconfigKeyword ControlMaster 169syn keyword sshconfigKeyword ControlPath 170syn keyword sshconfigKeyword ControlPersist 171syn keyword sshconfigKeyword DynamicForward 172syn keyword sshconfigKeyword EnableEscapeCommandline 173syn keyword sshconfigKeyword EnableSSHKeysign 174syn keyword sshconfigKeyword EscapeChar 175syn keyword sshconfigKeyword ExitOnForwardFailure 176syn keyword sshconfigKeyword FingerprintHash 177syn keyword sshconfigKeyword ForkAfterAuthentication 178syn keyword sshconfigKeyword ForwardAgent 179syn keyword sshconfigKeyword ForwardX11 180syn keyword sshconfigKeyword ForwardX11Timeout 181syn keyword sshconfigKeyword ForwardX11Trusted 182syn keyword sshconfigKeyword GatewayPorts 183syn keyword sshconfigKeyword GlobalKnownHostsFile 184syn keyword sshconfigKeyword GSSAPIAuthentication 185syn keyword sshconfigKeyword GSSAPIDelegateCredentials 186syn keyword sshconfigKeyword HashKnownHosts 187syn keyword sshconfigKeyword HostbasedAcceptedAlgorithms 188syn keyword sshconfigKeyword HostbasedAuthentication 189syn keyword sshconfigKeyword HostbasedKeyTypes 190syn keyword sshconfigKeyword HostKeyAlgorithms 191syn keyword sshconfigKeyword HostKeyAlias 192syn keyword sshconfigKeyword Hostname 193syn keyword sshconfigKeyword IdentitiesOnly 194syn keyword sshconfigKeyword IdentityAgent 195syn keyword sshconfigKeyword IdentityFile 196syn keyword sshconfigKeyword IgnoreUnknown 197syn keyword sshconfigKeyword Include 198syn keyword sshconfigKeyword IPQoS 199syn keyword sshconfigKeyword KbdInteractiveAuthentication 200syn keyword sshconfigKeyword KbdInteractiveDevices 201syn keyword sshconfigKeyword KexAlgorithms 202syn keyword sshconfigKeyword KnownHostsCommand 203syn keyword sshconfigKeyword LocalCommand 204syn keyword sshconfigKeyword LocalForward 205syn keyword sshconfigKeyword LogLevel 206syn keyword sshconfigKeyword LogVerbose 207syn keyword sshconfigKeyword MACs 208syn keyword sshconfigKeyword Match 209syn keyword sshconfigKeyword NoHostAuthenticationForLocalhost 210syn keyword sshconfigKeyword NumberOfPasswordPrompts 211syn keyword sshconfigKeyword ObscureKeystrokeTiming 212syn keyword sshconfigKeyword PasswordAuthentication 213syn keyword sshconfigKeyword PermitLocalCommand 214syn keyword sshconfigKeyword PermitRemoteOpen 215syn keyword sshconfigKeyword PKCS11Provider 216syn keyword sshconfigKeyword Port 217syn keyword sshconfigKeyword PreferredAuthentications 218syn keyword sshconfigKeyword ProxyCommand 219syn keyword sshconfigKeyword ProxyJump 220syn keyword sshconfigKeyword ProxyUseFdpass 221syn keyword sshconfigKeyword PubkeyAcceptedAlgorithms 222syn keyword sshconfigKeyword PubkeyAcceptedKeyTypes 223syn keyword sshconfigKeyword PubkeyAuthentication 224syn keyword sshconfigKeyword RefuseConnection 225syn keyword sshconfigKeyword RekeyLimit 226syn keyword sshconfigKeyword RemoteCommand 227syn keyword sshconfigKeyword RemoteForward 228syn keyword sshconfigKeyword RequestTTY 229syn keyword sshconfigKeyword RequiredRSASize 230syn keyword sshconfigKeyword RevokedHostKeys 231syn keyword sshconfigKeyword SecurityKeyProvider 232syn keyword sshconfigKeyword SendEnv 233syn keyword sshconfigKeyword ServerAliveCountMax 234syn keyword sshconfigKeyword ServerAliveInterval 235syn keyword sshconfigKeyword SessionType 236syn keyword sshconfigKeyword SetEnv 237syn keyword sshconfigKeyword SmartcardDevice 238syn keyword sshconfigKeyword StdinNull 239syn keyword sshconfigKeyword StreamLocalBindMask 240syn keyword sshconfigKeyword StreamLocalBindUnlink 241syn keyword sshconfigKeyword StrictHostKeyChecking 242syn keyword sshconfigKeyword SyslogFacility 243syn keyword sshconfigKeyword Tag 244syn keyword sshconfigKeyword TCPKeepAlive 245syn keyword sshconfigKeyword Tunnel 246syn keyword sshconfigKeyword TunnelDevice 247syn keyword sshconfigKeyword UpdateHostKeys 248syn keyword sshconfigKeyword UseBlacklistedKeys 249syn keyword sshconfigKeyword UseKeychain 250syn keyword sshconfigKeyword User 251syn keyword sshconfigKeyword UserKnownHostsFile 252syn keyword sshconfigKeyword VerifyHostKeyDNS 253syn keyword sshconfigKeyword VersionAddendum 254syn keyword sshconfigKeyword VisualHostKey 255syn keyword sshconfigKeyword WarnWeakCrypto 256syn keyword sshconfigKeyword XAuthLocation 257 258" Deprecated/ignored/remove/unsupported keywords 259 260syn keyword sshconfigDeprecated ChallengeResponseAuthentication 261syn keyword sshconfigDeprecated Cipher 262syn keyword sshconfigDeprecated GSSAPIClientIdentity 263syn keyword sshconfigDeprecated GSSAPIKeyExchange 264syn keyword sshconfigDeprecated GSSAPIRenewalForcesRekey 265syn keyword sshconfigDeprecated GSSAPIServerIdentity 266syn keyword sshconfigDeprecated GSSAPITrustDNS 267syn keyword sshconfigDeprecated GSSAPITrustDns 268syn keyword sshconfigDeprecated Protocol 269syn keyword sshconfigDeprecated RSAAuthentication 270syn keyword sshconfigDeprecated RhostsRSAAuthentication 271syn keyword sshconfigDeprecated CompressionLevel 272syn keyword sshconfigDeprecated UseRoaming 273syn keyword sshconfigDeprecated UsePrivilegedPort 274 275" Define the default highlighting 276 277hi def link sshconfigComment Comment 278hi def link sshconfigTodo Todo 279hi def link sshconfigHostPort sshconfigConstant 280hi def link sshconfigNumber Number 281hi def link sshconfigConstant Constant 282hi def link sshconfigYesNo Boolean 283hi def link sshconfigCipher sshconfigDeprecated 284hi def link sshconfigCiphers sshconfigEnum 285hi def link sshconfigCiphersDeprecated sshconfigDeprecated 286hi def link sshconfigMAC sshconfigEnum 287hi def link sshconfigMACDeprecated sshconfigDeprecated 288hi def link sshconfigHostKeyAlgo sshconfigEnum 289hi def link sshconfigHostKeyAlgoDeprecated sshconfigDeprecated 290hi def link sshconfigLogLevel sshconfigEnum 291hi def link sshconfigSysLogFacility sshconfigEnum 292hi def link sshconfigAddressFamily sshconfigEnum 293hi def link sshconfigIPQoS sshconfigEnum 294hi def link sshconfigIPQoSDeprecated sshconfigDeprecated 295hi def link sshconfigKbdInteractive sshconfigEnum 296hi def link sshconfigKexAlgo sshconfigEnum 297hi def link sshconfigTunnel sshconfigEnum 298hi def link sshconfigPreferredAuth sshconfigEnum 299hi def link sshconfigVar sshconfigEnum 300hi def link sshconfigEnum Identifier 301hi def link sshconfigSpecial Special 302hi def link sshconfigKeyword Keyword 303hi def link sshconfigHostSect Type 304hi def link sshconfigMatch Type 305hi def link sshconfigDeprecated Error 306 307let b: current_syntax = "sshconfig" 308 309" vim:set ts=8 sw=2 sts=2: