SSH Config
SSH Config language and completions
Details
Installs
- Total 17K
- Win 5K
- Mac 7K
- Linux 4K
Apr 15 | Apr 14 | Apr 13 | Apr 12 | Apr 11 | Apr 10 | Apr 9 | Apr 8 | Apr 7 | Apr 6 | Apr 5 | Apr 4 | Apr 3 | Apr 2 | Apr 1 | Mar 31 | Mar 30 | Mar 29 | Mar 28 | Mar 27 | Mar 26 | Mar 25 | Mar 24 | Mar 23 | Mar 22 | Mar 21 | Mar 20 | Mar 19 | Mar 18 | Mar 17 | Mar 16 | Mar 15 | Mar 14 | Mar 13 | Mar 12 | Mar 11 | Mar 10 | Mar 9 | Mar 8 | Mar 7 | Mar 6 | Mar 5 | Mar 4 | Mar 3 | Mar 2 | Mar 1 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 2 | 1 | 1 | 1 | 2 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 2 | 0 | 2 | 2 | 0 | 1 | 0 | 2 | 0 | 0 | 0 | 1 | 3 | 1 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Mac | 0 | 2 | 0 | 0 | 0 | 0 | 1 | 2 | 2 | 0 | 2 | 1 | 1 | 0 | 0 | 4 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 3 | 0 | 0 | 0 | 1 | 1 | 0 | 2 | 2 | 1 | 2 | 0 | 2 | 1 | 0 | 1 | 1 | 1 |
Linux | 0 | 0 | 2 | 0 | 0 | 2 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 2 | 0 | 1 | 2 | 1 | 1 | 0 | 0 | 0 | 1 | 1 | 2 | 1 |
Readme
- Source
- raw.githubusercontent.com
SSH Config Language
Provides highlighting and snippets for ~/.ssh/config
and /etc/ssh/sshd_config
files.
Installation
This package is available via Package Control. You can install it by searching for SSH in the “Install Package” interface or by cloning this repository in your Sublime Text “Packages” directory.
SSH Config
host
: create a new Host entrymatch
: create a new Match entry- Keyword completion for many *Nix and *BSD options
- Symbol Index for hosts and aliases (Ctrl+R or Cmd+R)
Note that ~/.ssh/config
is not linked to the SSH Config syntax highlighting
out of the box. This is because the filename is shared by other formats (e.g.
.git/config
) and we don't want to set the wrong highlighting for those.
Here are three ways to change that:
- Use the “Open SSH Config” command to open your config, which proactively sets the right highlighting unless you disable it.
- Choose “Open all with current extension as…” from the syntax highlighting selection menu.
- Install and configure ApplySyntax or AutoSetSyntax to examine the whole path of the file and set the syntax highlighting after load. Sample configuration for ApplySyntax is shown here.
SSHD Config
- Keyword completion for many *Nix and *BSD options
- Symbol Index for active and commented-out config options (Ctrl+R or Cmd+R)
Commands
- Open SSH Config File
- Open SSHD Config File
If these commands open the wrong file for you, open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P), search for “SSH Config: Settings”, and put in content like this:
{
"file_locations": {
"ssh_config": "~/.ssh/config",
"sshd_config": "/etc/ssh/sshd_config",
"known_hosts": "~/.ssh/known_hosts",
"authorized_keys": "~/.ssh/authorized_keys",
},
}
Extras
authorized_keys
andknown_hosts
also have- Syntax highlighting
- Symbol index
- “Open file” commands
- PEM, PKCS1, PKCS8, and SSH keys have
- Syntax
- Symbol index for cert bundles
- Completion and highlighting for crypto stuff
- Key types
- KEX algorithms
- Encryption ciphers
- MACs
Testing
- Install this repository under Sublime Text
Packages
and name itSSH Config
.- You can clone it there directly, move it, or symlink it.
- Open the project from under
Packages/SSH Config
. - Open a syntax test file located in the Tests directory.
- Run the
Build With: Syntax Tests
command.- This is supplied by the
Default
Sublime Package, shipped with ST. - It is available on the Command Palette when a test file is open.
- This is supplied by the
The PackageDev package is helpful for writing tests but not required.