Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add ssh config language #4429

Merged
merged 1 commit into from
May 10, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions lib/linguist/languages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4503,6 +4503,19 @@ SRecode Template:
extensions:
- ".srt"
language_id: 335
SSH Config:
type: data
group: INI
filenames:
- "ssh-config"
- "ssh_config"
- "sshconfig"
pchaigno marked this conversation as resolved.
Show resolved Hide resolved
- "sshconfig.snip"
- "sshd-config"
- "sshd_config"
pchaigno marked this conversation as resolved.
Show resolved Hide resolved
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