Skip to content

Commit

Permalink
add ssh config language (#4429)
Browse files Browse the repository at this point in the history
  • Loading branch information
atakanyenel authored and lildude committed May 10, 2019
1 parent f01ef78 commit aea4f22
Show file tree
Hide file tree
Showing 8 changed files with 63 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lib/linguist/languages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4508,6 +4508,19 @@ SRecode Template:
extensions:
- ".srt"
language_id: 335
SSH Config:
type: data
group: INI
filenames:
- "ssh-config"
- "ssh_config"
- "sshconfig"
- "sshconfig.snip"
- "sshd-config"
- "sshd_config"
ace_mode: text
tm_scope: source.ssh-config
language_id: 554920715
STON:
type: data
group: Smalltalk
Expand Down
11 changes: 11 additions & 0 deletions samples/SSH Config/filenames/ssh-config
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Some vagrant box
Host client-vagrant
HostName 127.0.0.1
User vagrant
Port 2200
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
PasswordAuthentication no
IdentityFile /Users/gableroux/somewhere/.vagrant/machines/default/virtualbox/private_key
IdentitiesOnly yes
LogLevel FATAL
10 changes: 10 additions & 0 deletions samples/SSH Config/filenames/ssh_config
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Example server
Host client-roomserver01
Hostname 255.255.255.255
User root
Port 22
IdentitiesOnly no
PreferredAuthentications=password
# ProxyCommand ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no client-proxy-server nc %h %p %r -e
# ProxyCommand ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no client-proxy-server nc %h %p
ProxyJump client-proxy-server
6 changes: 6 additions & 0 deletions samples/SSH Config/filenames/sshconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# github
Host github github.com gist.github.com
Hostname github.com
User git
IdentityFile ~/.ssh/github_rsa
IdentitiesOnly yes
6 changes: 6 additions & 0 deletions samples/SSH Config/filenames/sshconfig.snip
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
snippet Host
options head
Host ${1:name}
HostName $1.${2:domain}
Port ${3}
${4:User }
8 changes: 8 additions & 0 deletions samples/SSH Config/filenames/sshd-config
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Router
Host 192.168.1.1 tomato
#Hostname tomato
Hostname 192.168.1.1
IdentityFile ~/.ssh/tomato_rsa
IdentitiesOnly yes
User root
KexAlgorithms +diffie-hellman-group1-sha1
8 changes: 8 additions & 0 deletions samples/SSH Config/filenames/sshd_config
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Some password only server example
Host 192.168.0.100 example
Hostname 192.168.0.100
IdentityFile ~/.ssh/id_rsa
IdentitiesOnly yes
User root
PreferredAuthentications=password
PubkeyAuthentication=no
1 change: 1 addition & 0 deletions vendor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,7 @@ This is a list of grammars that Linguist selects to provide syntax highlighting
- **SQL:** [textmate/sql.tmbundle](https://github.com/textmate/sql.tmbundle)
- **SQLPL:** [textmate/sql.tmbundle](https://github.com/textmate/sql.tmbundle)
- **SRecode Template:** [textmate/lisp.tmbundle](https://github.com/textmate/lisp.tmbundle)
- **SSH Config:** [Alhadis/language-etc](https://github.com/Alhadis/language-etc)
- **STON:** [tomas-stefano/smalltalk-tmbundle](https://github.com/tomas-stefano/smalltalk-tmbundle)
- **SVG:** [textmate/xml.tmbundle](https://github.com/textmate/xml.tmbundle)
- **Sage:** [MagicStack/MagicPython](https://github.com/MagicStack/MagicPython)
Expand Down

0 comments on commit aea4f22

Please sign in to comment.