| 1 |
{ |
| 2 |
"fileTypes": ["ssh_config", ".ssh/config", "sshd_config"], |
| 3 |
"name": "ssh-config", |
| 4 |
"patterns": [ |
| 5 |
{ |
| 6 |
"match": "\\b(A(cceptEnv|dd(ressFamily|KeysToAgent)|llow(AgentForwarding|Groups|StreamLocalForwarding|TcpForwarding|Users)|uth(enticationMethods|orized((Keys(Command(User)?|File)|Principals(Command(User)?|File)))))|B(anner|atchMode|ind(Address|Interface))|C(anonical(Domains|ize(FallbackLocal|Hostname|MaxDots|PermittedCNAMEs))|ertificateFile|hallengeResponseAuthentication|heckHostIP|hrootDirectory|iphers?|learAllForwardings|ientAlive(CountMax|Interval)|ompression(Level)?|onnect(Timeout|ionAttempts)|ontrolMaster|ontrolPath|ontrolPersist)|D(eny(Groups|Users)|isableForwarding|ynamicForward)|E(nableSSHKeysign|scapeChar|xitOnForwardFailure|xposeAuthInfo)|F(ingerprintHash|orceCommand|orward(Agent|X11(Timeout|Trusted)?))|G(atewayPorts|SSAPI(Authentication|CleanupCredentials|ClientIdentity|DelegateCredentials|KeyExchange|RenewalForcesRekey|ServerIdentity|StrictAcceptorCheck|TrustDns)|atewayPorts|lobalKnownHostsFile)|H(ashKnownHosts|ost(based(AcceptedKeyTypes|Authentication|KeyTypes|UsesNameFromPacketOnly)|Certificate|Key(Agent|Algorithms|Alias)?|Name))|I(dentit(iesOnly|y(Agent|File))|gnore(Rhosts|Unknown|UserKnownHosts)|nclude|PQoS)|K(bdInteractive(Authentication|Devices)|erberos(Authentication|GetAFSToken|OrLocalPasswd|TicketCleanup)|exAlgorithms)|L(istenAddress|ocal(Command|Forward)|oginGraceTime|ogLevel)|M(ACs|atch|ax(AuthTries|Sessions|Startups))|N(oHostAuthenticationForLocalhost|umberOfPasswordPrompts)|P(KCS11Provider|asswordAuthentication|ermit(EmptyPasswords|LocalCommand|Open|RootLogin|TTY|Tunnel|User(Environment|RC))|idFile|ort|referredAuthentications|rint(LastLog|Motd)|rotocol|roxy(Command|Jump|UseFdpass)|ubkey(AcceptedKeyTypes|Authentication))|R(Domain|SAAuthentication|ekeyLimit|emote(Command|Forward)|equestTTY|evoked(HostKeys|Keys)|hostsRSAAuthentication)|S(endEnv|erverAlive(CountMax|Interval)|treamLocalBind(Mask|Unlink)|trict(HostKeyChecking|Modes)|ubsystem|yslogFacility)|T(CPKeepAlive|rustedUserCAKeys|unnel(Device)?)|U(pdateHostKeys|se(BlacklistedKeys|DNS|Keychain|PAM|PrivilegedPort|r(KnownHostsFile)?))|V(erifyHostKeyDNS|ersionAddendum|isualHostKey)|X(11(DisplayOffset|Forwarding|UseLocalhost)|AuthLocation))\\b", |
| 7 |
"name": "keyword.other.ssh-config" |
| 8 |
}, |
| 9 |
{ |
| 10 |
"begin": "(^[ \\t]+)?(?=#)", |
| 11 |
"beginCaptures": { |
| 12 |
"1": { |
| 13 |
"name": "punctuation.whitespace.comment.leading.ssh-config" |
| 14 |
} |
| 15 |
}, |
| 16 |
"end": "(?!\\G)", |
| 17 |
"patterns": [ |
| 18 |
{ |
| 19 |
"begin": "#", |
| 20 |
"beginCaptures": { |
| 21 |
"0": { |
| 22 |
"name": "punctuation.definition.comment.ssh-config" |
| 23 |
} |
| 24 |
}, |
| 25 |
"end": "\\n", |
| 26 |
"name": "comment.line.number-sign.ssh-config" |
| 27 |
} |
| 28 |
] |
| 29 |
}, |
| 30 |
{ |
| 31 |
"begin": "(^[ \\t]+)?(?=//)", |
| 32 |
"beginCaptures": { |
| 33 |
"1": { |
| 34 |
"name": "punctuation.whitespace.comment.leading.ssh-config" |
| 35 |
} |
| 36 |
}, |
| 37 |
"end": "(?!\\G)", |
| 38 |
"patterns": [ |
| 39 |
{ |
| 40 |
"begin": "//", |
| 41 |
"beginCaptures": { |
| 42 |
"0": { |
| 43 |
"name": "punctuation.definition.comment.ssh-config" |
| 44 |
} |
| 45 |
}, |
| 46 |
"end": "\\n", |
| 47 |
"name": "comment.line.double-slash.ssh-config" |
| 48 |
} |
| 49 |
] |
| 50 |
}, |
| 51 |
{ |
| 52 |
"captures": { |
| 53 |
"1": { |
| 54 |
"name": "storage.type.ssh-config" |
| 55 |
}, |
| 56 |
"2": { |
| 57 |
"name": "entity.name.section.ssh-config" |
| 58 |
}, |
| 59 |
"3": { |
| 60 |
"name": "meta.toc-list.ssh-config" |
| 61 |
} |
| 62 |
}, |
| 63 |
"match": "(?:^| |\\t)(Host)\\s+((.*))$" |
| 64 |
}, |
| 65 |
{ |
| 66 |
"match": "\\b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\b", |
| 67 |
"name": "constant.numeric.ssh-config" |
| 68 |
}, |
| 69 |
{ |
| 70 |
"match": "\\b[0-9]+\\b", |
| 71 |
"name": "constant.numeric.ssh-config" |
| 72 |
}, |
| 73 |
{ |
| 74 |
"match": "\\b(yes|no)\\b", |
| 75 |
"name": "constant.language.ssh-config" |
| 76 |
}, |
| 77 |
{ |
| 78 |
"match": "\\b[A-Z_]+\\b", |
| 79 |
"name": "constant.language.ssh-config" |
| 80 |
} |
| 81 |
], |
| 82 |
"scopeName": "source.ssh-config", |
| 83 |
"uuid": "B273855C-59D3-4DF3-9B7C-E68E0057D315" |
| 84 |
} |
| 85 |
|