ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

SSH Config

SSH Config language and completions

Details

  • 4.0.1
    1.1.3
  • github.​com
  • github.​com
  • 1 month ago
  • 41 minutes ago
  • 7 years ago

Installs

  • Total 13K
  • Win 4K
  • Mac 6K
  • Linux 3K
Sep 26 Sep 25 Sep 24 Sep 23 Sep 22 Sep 21 Sep 20 Sep 19 Sep 18 Sep 17 Sep 16 Sep 15 Sep 14 Sep 13 Sep 12 Sep 11 Sep 10 Sep 9 Sep 8 Sep 7 Sep 6 Sep 5 Sep 4 Sep 3 Sep 2 Sep 1 Aug 31 Aug 30 Aug 29 Aug 28 Aug 27 Aug 26 Aug 25 Aug 24 Aug 23 Aug 22 Aug 21 Aug 20 Aug 19 Aug 18 Aug 17 Aug 16 Aug 15 Aug 14 Aug 13 Aug 12
Windows 0 0 2 1 0 1 0 1 0 0 1 2 4 1 0 2 0 1 0 1 1 0 0 2 1 0 0 0 0 1 1 0 1 1 1 1 1 0 1 1 3 0 1 2 2 0
Mac 2 2 4 3 0 1 1 0 1 0 2 3 1 1 3 2 3 2 0 3 4 0 0 1 0 1 4 1 0 1 1 2 1 1 2 0 1 1 4 1 4 0 2 0 2 3
Linux 0 0 2 0 0 0 1 2 3 0 3 0 1 1 0 2 0 3 0 2 0 0 1 0 0 1 1 0 3 2 2 1 2 1 1 1 0 1 0 1 2 0 0 0 2 0

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.

Snippets and Completions

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"
}

SSH Config

  • host: create a new Host entry
  • match: create a new Match entry
  • Keyword completion for many *Nix and *BSD options
  • Symbol Index for hosts and aliases (Ctrl+R or Cmd+R)

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 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"
    }
}

Extras

  • authorized_keys and known_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