Provides highlighting and snippets for ~/.ssh/config
and /etc/ssh/sshd_config
files.
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.
If you do not see on-demand autocomplete, check for an auto_complete_selector
line in your Syntax-specific Settings file. If it says text.ssh_config
, remove the whole line. If one does not exist, you can try adding
{
"auto_complete_selector": "source.ssh_config, source.sshd_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)
- Keyword completion for many *Nix and *BSD options
- Symbol Index for active and commented-out config options (Ctrl+R or Cmd+R)
- Open SSH Config File
- Open SSHD Config File
If these open the wrong file for you, make a SSH Config.sublime-settings
file in your Packages/User
folder, 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"
}
}
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
- Better highlighting for paths