2014-07-10 21:05:51 -07:00
|
|
|
" Vim syntax file
|
|
|
|
" Language: OpenSSH client configuration file (ssh_config)
|
|
|
|
" Author: David Necas (Yeti)
|
2016-05-03 12:16:53 -07:00
|
|
|
" Maintainer: Dominik Fischer <d dot f dot fischer at web dot de>
|
2016-05-27 09:47:21 -07:00
|
|
|
" Contributor: Leonard Ehrenfried <leonard.ehrenfried@web.de>
|
|
|
|
" Contributor: Karsten Hopp <karsten@redhat.com>
|
2016-10-04 07:26:07 -07:00
|
|
|
" Last Change: 2016 Apr 7
|
|
|
|
" SSH Version: 7.2p2
|
2014-07-10 21:05:51 -07:00
|
|
|
"
|
|
|
|
|
|
|
|
" Setup
|
|
|
|
if version >= 600
|
|
|
|
if exists("b:current_syntax")
|
|
|
|
finish
|
|
|
|
endif
|
|
|
|
else
|
|
|
|
syntax clear
|
|
|
|
endif
|
|
|
|
|
|
|
|
if version >= 600
|
|
|
|
setlocal iskeyword=_,-,a-z,A-Z,48-57
|
|
|
|
else
|
|
|
|
set iskeyword=_,-,a-z,A-Z,48-57
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
" case on
|
|
|
|
syn case match
|
|
|
|
|
|
|
|
|
|
|
|
" Comments
|
|
|
|
syn match sshconfigComment "^#.*$" contains=sshconfigTodo
|
|
|
|
syn match sshconfigComment "\s#.*$" contains=sshconfigTodo
|
|
|
|
|
|
|
|
syn keyword sshconfigTodo TODO FIXME NOTE contained
|
|
|
|
|
|
|
|
|
|
|
|
" Constants
|
2016-10-04 07:26:07 -07:00
|
|
|
syn keyword sshconfigYesNo yes no ask confirm
|
2014-07-10 21:05:51 -07:00
|
|
|
syn keyword sshconfigYesNo any auto
|
|
|
|
syn keyword sshconfigYesNo force autoask none
|
|
|
|
|
2016-06-20 07:02:49 -07:00
|
|
|
syn keyword sshconfigCipher 3des blowfish
|
2014-07-10 21:05:51 -07:00
|
|
|
|
2016-06-20 07:02:49 -07:00
|
|
|
syn keyword sshconfigCiphers 3des-cbc
|
|
|
|
syn keyword sshconfigCiphers blowfish-cbc
|
|
|
|
syn keyword sshconfigCiphers cast128-cbc
|
|
|
|
syn keyword sshconfigCiphers arcfour
|
|
|
|
syn keyword sshconfigCiphers arcfour128
|
|
|
|
syn keyword sshconfigCiphers arcfour256
|
|
|
|
syn keyword sshconfigCiphers aes128-cbc
|
|
|
|
syn keyword sshconfigCiphers aes192-cbc
|
|
|
|
syn keyword sshconfigCiphers aes256-cbc
|
|
|
|
syn match sshconfigCiphers "\<rijndael-cbc@lysator\.liu.se\>"
|
|
|
|
syn keyword sshconfigCiphers aes128-ctr
|
|
|
|
syn keyword sshconfigCiphers aes192-ctr
|
|
|
|
syn keyword sshconfigCiphers aes256-ctr
|
|
|
|
syn match sshconfigCiphers "\<aes128-gcm@openssh\.com\>"
|
|
|
|
syn match sshconfigCiphers "\<aes256-gcm@openssh\.com\>"
|
|
|
|
syn match sshconfigCiphers "\<chacha20-poly1305@openssh\.com\>"
|
|
|
|
|
|
|
|
syn keyword sshconfigMAC hmac-sha1
|
|
|
|
syn keyword sshconfigMAC mac-sha1-96
|
|
|
|
syn keyword sshconfigMAC mac-sha2-256
|
|
|
|
syn keyword sshconfigMAC mac-sha2-512
|
|
|
|
syn keyword sshconfigMAC mac-md5
|
|
|
|
syn keyword sshconfigMAC mac-md5-96
|
|
|
|
syn keyword sshconfigMAC mac-ripemd160
|
|
|
|
syn match sshconfigMAC "\<hmac-ripemd160@openssh\.com\>"
|
2014-07-10 21:05:51 -07:00
|
|
|
syn match sshconfigMAC "\<umac-64@openssh\.com\>"
|
2016-06-20 07:02:49 -07:00
|
|
|
syn match sshconfigMAC "\<umac-128@openssh\.com\>"
|
|
|
|
syn match sshconfigMAC "\<hmac-sha1-etm@openssh\.com\>"
|
|
|
|
syn match sshconfigMAC "\<hmac-sha1-96-etm@openssh\.com\>"
|
|
|
|
syn match sshconfigMAC "\<hmac-sha2-256-etm@openssh\.com\>"
|
|
|
|
syn match sshconfigMAC "\<hmac-sha2-512-etm@openssh\.com\>"
|
|
|
|
syn match sshconfigMAC "\<hmac-md5-etm@openssh\.com\>"
|
|
|
|
syn match sshconfigMAC "\<hmac-md5-96-etm@openssh\.com\>"
|
|
|
|
syn match sshconfigMAC "\<hmac-ripemd160-etm@openssh\.com\>"
|
|
|
|
syn match sshconfigMAC "\<umac-64-etm@openssh\.com\>"
|
|
|
|
syn match sshconfigMAC "\<umac-128-etm@openssh\.com\>"
|
2014-07-10 21:05:51 -07:00
|
|
|
|
2016-06-20 07:02:49 -07:00
|
|
|
syn keyword sshconfigHostKeyAlgo ssh-ed25519
|
|
|
|
syn match sshconfigHostKeyAlgo "\<ssh-ed25519-cert-v01@openssh\.com\>"
|
|
|
|
syn keyword sshconfigHostKeyAlgo ssh-rsa
|
|
|
|
syn keyword sshconfigHostKeyAlgo ssh-dss
|
|
|
|
syn keyword sshconfigHostKeyAlgo ecdsa-sha2-nistp256
|
|
|
|
syn keyword sshconfigHostKeyAlgo ecdsa-sha2-nistp384
|
|
|
|
syn keyword sshconfigHostKeyAlgo ecdsa-sha2-nistp521
|
|
|
|
syn match sshconfigHostKeyAlgo "\<ssh-rsa-cert-v01@openssh\.com\>"
|
|
|
|
syn match sshconfigHostKeyAlgo "\<ssh-dss-cert-v01@openssh\.com\>"
|
|
|
|
syn match sshconfigHostKeyAlgo "\<ecdsa-sha2-nistp256-cert-v01@openssh\.com\>"
|
|
|
|
syn match sshconfigHostKeyAlgo "\<ecdsa-sha2-nistp384-cert-v01@openssh\.com\>"
|
|
|
|
syn match sshconfigHostKeyAlgo "\<ecdsa-sha2-nistp521-cert-v01@openssh\.com\>"
|
2014-07-10 21:05:51 -07:00
|
|
|
|
|
|
|
syn keyword sshconfigPreferredAuth hostbased publickey password gssapi-with-mic
|
|
|
|
syn keyword sshconfigPreferredAuth keyboard-interactive
|
|
|
|
|
|
|
|
syn keyword sshconfigLogLevel QUIET FATAL ERROR INFO VERBOSE
|
|
|
|
syn keyword sshconfigLogLevel DEBUG DEBUG1 DEBUG2 DEBUG3
|
|
|
|
syn keyword sshconfigSysLogFacility DAEMON USER AUTH AUTHPRIV LOCAL0 LOCAL1
|
|
|
|
syn keyword sshconfigSysLogFacility LOCAL2 LOCAL3 LOCAL4 LOCAL5 LOCAL6 LOCAL7
|
|
|
|
syn keyword sshconfigAddressFamily inet inet6
|
|
|
|
|
2016-05-27 09:47:21 -07:00
|
|
|
syn match sshconfigIPQoS "af1[123]"
|
|
|
|
syn match sshconfigIPQoS "af2[123]"
|
2014-07-10 21:05:51 -07:00
|
|
|
syn match sshconfigIPQoS "af3[123]"
|
|
|
|
syn match sshconfigIPQoS "af4[123]"
|
|
|
|
syn match sshconfigIPQoS "cs[0-7]"
|
|
|
|
syn keyword sshconfigIPQoS ef lowdelay throughput reliability
|
|
|
|
syn keyword sshconfigKbdInteractive bsdauth pam skey
|
|
|
|
|
2016-06-20 07:02:49 -07:00
|
|
|
syn keyword sshconfigKexAlgo diffie-hellman-group1-sha1
|
|
|
|
syn keyword sshconfigKexAlgo diffie-hellman-group14-sha1
|
|
|
|
syn keyword sshconfigKexAlgo diffie-hellman-group-exchange-sha1
|
|
|
|
syn keyword sshconfigKexAlgo diffie-hellman-group-exchange-sha256
|
|
|
|
syn keyword sshconfigKexAlgo ecdh-sha2-nistp256
|
|
|
|
syn keyword sshconfigKexAlgo ecdh-sha2-nistp384
|
|
|
|
syn keyword sshconfigKexAlgo ecdh-sha2-nistp521
|
|
|
|
syn match sshconfigKexAlgo "\<curve25519-sha256@libssh\.org\>"
|
2014-07-10 21:05:51 -07:00
|
|
|
|
|
|
|
syn keyword sshconfigTunnel point-to-point ethernet
|
|
|
|
|
|
|
|
syn match sshconfigVar "%[rhplLdun]\>"
|
|
|
|
syn match sshconfigSpecial "[*?]"
|
|
|
|
syn match sshconfigNumber "\d\+"
|
|
|
|
syn match sshconfigHostPort "\<\(\d\{1,3}\.\)\{3}\d\{1,3}\(:\d\+\)\?\>"
|
|
|
|
syn match sshconfigHostPort "\<\([-a-zA-Z0-9]\+\.\)\+[-a-zA-Z0-9]\{2,}\(:\d\+\)\?\>"
|
|
|
|
syn match sshconfigHostPort "\<\(\x\{,4}:\)\+\x\{,4}[:/]\d\+\>"
|
|
|
|
syn match sshconfigHostPort "\(Host \)\@<=.\+"
|
|
|
|
syn match sshconfigHostPort "\(HostName \)\@<=.\+"
|
|
|
|
|
|
|
|
" case off
|
|
|
|
syn case ignore
|
|
|
|
|
|
|
|
|
|
|
|
" Keywords
|
|
|
|
syn keyword sshconfigHostSect Host
|
|
|
|
|
2016-05-03 12:16:53 -07:00
|
|
|
syn keyword sshconfigMatch canonical exec host originalhost user localuser all
|
|
|
|
|
2014-07-10 21:05:51 -07:00
|
|
|
syn keyword sshconfigKeyword AddressFamily
|
2016-10-04 07:26:07 -07:00
|
|
|
syn keyword sshconfigKeyword AddKeysToAgent
|
2014-07-10 21:05:51 -07:00
|
|
|
syn keyword sshconfigKeyword BatchMode
|
|
|
|
syn keyword sshconfigKeyword BindAddress
|
2016-05-27 09:47:21 -07:00
|
|
|
syn keyword sshconfigKeyword CanonicalDomains
|
|
|
|
syn keyword sshconfigKeyword CanonicalizeFallbackLocal
|
|
|
|
syn keyword sshconfigKeyword CanonicalizeHostname
|
|
|
|
syn keyword sshconfigKeyword CanonicalizeMaxDots
|
2016-06-20 07:02:49 -07:00
|
|
|
syn keyword sshconfigKeyword CertificateFile
|
2014-07-10 21:05:51 -07:00
|
|
|
syn keyword sshconfigKeyword ChallengeResponseAuthentication
|
|
|
|
syn keyword sshconfigKeyword CheckHostIP
|
|
|
|
syn keyword sshconfigKeyword Cipher
|
|
|
|
syn keyword sshconfigKeyword Ciphers
|
|
|
|
syn keyword sshconfigKeyword ClearAllForwardings
|
|
|
|
syn keyword sshconfigKeyword Compression
|
|
|
|
syn keyword sshconfigKeyword CompressionLevel
|
|
|
|
syn keyword sshconfigKeyword ConnectTimeout
|
|
|
|
syn keyword sshconfigKeyword ConnectionAttempts
|
|
|
|
syn keyword sshconfigKeyword ControlMaster
|
|
|
|
syn keyword sshconfigKeyword ControlPath
|
|
|
|
syn keyword sshconfigKeyword ControlPersist
|
|
|
|
syn keyword sshconfigKeyword DynamicForward
|
|
|
|
syn keyword sshconfigKeyword EnableSSHKeysign
|
|
|
|
syn keyword sshconfigKeyword EscapeChar
|
|
|
|
syn keyword sshconfigKeyword ExitOnForwardFailure
|
|
|
|
syn keyword sshconfigKeyword ForwardAgent
|
|
|
|
syn keyword sshconfigKeyword ForwardX11
|
|
|
|
syn keyword sshconfigKeyword ForwardX11Timeout
|
|
|
|
syn keyword sshconfigKeyword ForwardX11Trusted
|
|
|
|
syn keyword sshconfigKeyword GSSAPIAuthentication
|
|
|
|
syn keyword sshconfigKeyword GSSAPIClientIdentity
|
|
|
|
syn keyword sshconfigKeyword GSSAPIDelegateCredentials
|
|
|
|
syn keyword sshconfigKeyword GSSAPIKeyExchange
|
|
|
|
syn keyword sshconfigKeyword GSSAPIRenewalForcesRekey
|
|
|
|
syn keyword sshconfigKeyword GSSAPIServerIdentity
|
|
|
|
syn keyword sshconfigKeyword GSSAPITrustDNS
|
|
|
|
syn keyword sshconfigKeyword GSSAPITrustDns
|
|
|
|
syn keyword sshconfigKeyword GatewayPorts
|
|
|
|
syn keyword sshconfigKeyword GlobalKnownHostsFile
|
|
|
|
syn keyword sshconfigKeyword HashKnownHosts
|
|
|
|
syn keyword sshconfigKeyword HostKeyAlgorithms
|
|
|
|
syn keyword sshconfigKeyword HostKeyAlias
|
|
|
|
syn keyword sshconfigKeyword HostName
|
|
|
|
syn keyword sshconfigKeyword HostbasedAuthentication
|
2016-05-03 12:16:53 -07:00
|
|
|
syn keyword sshconfigKeyword HostbasedKeyTypes
|
2014-07-10 21:05:51 -07:00
|
|
|
syn keyword sshconfigKeyword IPQoS
|
|
|
|
syn keyword sshconfigKeyword IdentitiesOnly
|
|
|
|
syn keyword sshconfigKeyword IdentityFile
|
2016-05-27 09:47:21 -07:00
|
|
|
syn keyword sshconfigKeyword IgnoreUnknown
|
|
|
|
syn keyword sshconfigKeyword IPQoS
|
2014-07-10 21:05:51 -07:00
|
|
|
syn keyword sshconfigKeyword KbdInteractiveAuthentication
|
|
|
|
syn keyword sshconfigKeyword KbdInteractiveDevices
|
|
|
|
syn keyword sshconfigKeyword KexAlgorithms
|
|
|
|
syn keyword sshconfigKeyword LocalCommand
|
|
|
|
syn keyword sshconfigKeyword LocalForward
|
|
|
|
syn keyword sshconfigKeyword LogLevel
|
|
|
|
syn keyword sshconfigKeyword MACs
|
2016-05-03 12:16:53 -07:00
|
|
|
syn keyword sshconfigKeyword Match
|
2014-07-10 21:05:51 -07:00
|
|
|
syn keyword sshconfigKeyword NoHostAuthenticationForLocalhost
|
|
|
|
syn keyword sshconfigKeyword NumberOfPasswordPrompts
|
|
|
|
syn keyword sshconfigKeyword PKCS11Provider
|
|
|
|
syn keyword sshconfigKeyword PasswordAuthentication
|
|
|
|
syn keyword sshconfigKeyword PermitLocalCommand
|
|
|
|
syn keyword sshconfigKeyword Port
|
|
|
|
syn keyword sshconfigKeyword PreferredAuthentications
|
|
|
|
syn keyword sshconfigKeyword Protocol
|
|
|
|
syn keyword sshconfigKeyword ProxyCommand
|
2016-05-03 12:16:53 -07:00
|
|
|
syn keyword sshconfigKeyword ProxyUseFDPass
|
|
|
|
syn keyword sshconfigKeyword PubkeyAcceptedKeyTypes
|
2014-07-10 21:05:51 -07:00
|
|
|
syn keyword sshconfigKeyword PubkeyAuthentication
|
|
|
|
syn keyword sshconfigKeyword RSAAuthentication
|
|
|
|
syn keyword sshconfigKeyword RekeyLimit
|
|
|
|
syn keyword sshconfigKeyword RemoteForward
|
|
|
|
syn keyword sshconfigKeyword RequestTTY
|
|
|
|
syn keyword sshconfigKeyword RhostsRSAAuthentication
|
|
|
|
syn keyword sshconfigKeyword SendEnv
|
|
|
|
syn keyword sshconfigKeyword ServerAliveCountMax
|
|
|
|
syn keyword sshconfigKeyword ServerAliveInterval
|
|
|
|
syn keyword sshconfigKeyword SmartcardDevice
|
|
|
|
syn keyword sshconfigKeyword StrictHostKeyChecking
|
|
|
|
syn keyword sshconfigKeyword TCPKeepAlive
|
|
|
|
syn keyword sshconfigKeyword Tunnel
|
|
|
|
syn keyword sshconfigKeyword TunnelDevice
|
|
|
|
syn keyword sshconfigKeyword UseBlacklistedKeys
|
|
|
|
syn keyword sshconfigKeyword UsePrivilegedPort
|
|
|
|
syn keyword sshconfigKeyword User
|
|
|
|
syn keyword sshconfigKeyword UserKnownHostsFile
|
2016-05-27 09:47:21 -07:00
|
|
|
syn keyword sshconfigKeyword UseRoaming
|
2014-07-10 21:05:51 -07:00
|
|
|
syn keyword sshconfigKeyword VerifyHostKeyDNS
|
|
|
|
syn keyword sshconfigKeyword VisualHostKey
|
|
|
|
syn keyword sshconfigKeyword XAuthLocation
|
|
|
|
|
|
|
|
" Define the default highlighting
|
|
|
|
if version >= 508 || !exists("did_sshconfig_syntax_inits")
|
|
|
|
if version < 508
|
|
|
|
let did_sshconfig_syntax_inits = 1
|
|
|
|
command -nargs=+ HiLink hi link <args>
|
|
|
|
else
|
|
|
|
command -nargs=+ HiLink hi def link <args>
|
|
|
|
endif
|
|
|
|
|
|
|
|
HiLink sshconfigComment Comment
|
|
|
|
HiLink sshconfigTodo Todo
|
|
|
|
HiLink sshconfigHostPort sshconfigConstant
|
|
|
|
HiLink sshconfigNumber sshconfigConstant
|
|
|
|
HiLink sshconfigConstant Constant
|
|
|
|
HiLink sshconfigYesNo sshconfigEnum
|
|
|
|
HiLink sshconfigCipher sshconfigEnum
|
|
|
|
HiLink sshconfigCiphers sshconfigEnum
|
|
|
|
HiLink sshconfigMAC sshconfigEnum
|
2016-06-20 07:02:49 -07:00
|
|
|
HiLink sshconfigHostKeyAlgo sshconfigEnum
|
2014-07-10 21:05:51 -07:00
|
|
|
HiLink sshconfigLogLevel sshconfigEnum
|
|
|
|
HiLink sshconfigSysLogFacility sshconfigEnum
|
|
|
|
HiLink sshconfigAddressFamily sshconfigEnum
|
|
|
|
HiLink sshconfigIPQoS sshconfigEnum
|
|
|
|
HiLink sshconfigKbdInteractive sshconfigEnum
|
|
|
|
HiLink sshconfigKexAlgo sshconfigEnum
|
|
|
|
HiLink sshconfigTunnel sshconfigEnum
|
|
|
|
HiLink sshconfigPreferredAuth sshconfigEnum
|
|
|
|
HiLink sshconfigVar sshconfigEnum
|
|
|
|
HiLink sshconfigEnum Identifier
|
|
|
|
HiLink sshconfigSpecial Special
|
|
|
|
HiLink sshconfigKeyword Keyword
|
|
|
|
HiLink sshconfigHostSect Type
|
2016-05-03 12:16:53 -07:00
|
|
|
HiLink sshconfigMatch Type
|
2014-07-10 21:05:51 -07:00
|
|
|
delcommand HiLink
|
|
|
|
endif
|
|
|
|
|
|
|
|
let b:current_syntax = "sshconfig"
|
|
|
|
|
|
|
|
" vim:set ts=8 sw=2 sts=2:
|