SSH Config
SSH Config language and completions
Details
Installs
- Total 15K
- Win 5K
- Mac 7K
- Linux 4K
May 28 | May 27 | May 26 | May 25 | May 24 | May 23 | May 22 | May 21 | May 20 | May 19 | May 18 | May 17 | May 16 | May 15 | May 14 | May 13 | May 12 | May 11 | May 10 | May 9 | May 8 | May 7 | May 6 | May 5 | May 4 | May 3 | May 2 | May 1 | Apr 30 | Apr 29 | Apr 28 | Apr 27 | Apr 26 | Apr 25 | Apr 24 | Apr 23 | Apr 22 | Apr 21 | Apr 20 | Apr 19 | Apr 18 | Apr 17 | Apr 16 | Apr 15 | Apr 14 | Apr 13 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 2 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 3 | 1 | 0 | 0 | 0 | 3 | 2 | 2 | 1 | 0 | 0 | 2 | 0 | 1 | 1 | 1 | 2 | 0 | 2 | 1 | 1 | 0 | 1 | 1 | 2 | 1 | 1 | 3 | 3 | 2 | 0 | 0 | 3 | 0 |
Mac | 1 | 0 | 2 | 1 | 1 | 4 | 1 | 0 | 2 | 2 | 1 | 0 | 2 | 5 | 2 | 2 | 2 | 0 | 1 | 0 | 0 | 3 | 3 | 1 | 0 | 1 | 0 | 0 | 0 | 2 | 2 | 4 | 0 | 2 | 1 | 0 | 0 | 2 | 3 | 0 | 2 | 0 | 1 | 1 | 2 | 1 |
Linux | 0 | 3 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 2 | 1 | 1 | 0 | 0 | 1 | 0 | 2 | 0 | 2 | 2 | 1 | 1 | 0 | 1 | 1 | 0 | 1 | 2 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 1 | 0 | 2 |
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 to examine the whole path of the file and set the syntax highlighting after load. Sample configuration 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:
Error: language “jsonc” is not supported
{
"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
- (unmapped) “Open file” commands
- Completion and highlighting for crypto stuff
- Key types
- KEX algorithms
- Encryption ciphers
- MACs
To-Do
- Better highlighting for paths