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

SSH Config

by michaelblyons, robballou ST2/ST3

SSH Config language and completions

Details

  • 3.1.0
    2.0.1
    1.1.3
  • github.​com
  • github.​com
  • 3 weeks ago
  • 2 hours ago
  • 6 years ago

Installs

  • Total 11K
  • Win 4K
  • OS X 5K
  • Linux 3K
Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16 Oct 15 Oct 14 Oct 13 Oct 12 Oct 11 Oct 10 Oct 9 Oct 8 Oct 7 Oct 6 Oct 5 Oct 4 Oct 3 Oct 2 Oct 1 Sep 30 Sep 29 Sep 28 Sep 27 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
Windows 1 0 1 2 2 1 1 0 0 0 0 3 0 0 1 0 0 0 1 0 0 2 1 3 1 2 0 0 1 1 0 0 1 2 2 0 3 0 0 3 1 0 2 0 1 1
OS X 0 1 1 0 3 1 2 5 5 2 0 2 3 1 4 3 1 0 1 2 2 1 1 0 3 1 6 2 4 1 1 0 1 1 3 1 3 0 0 1 2 5 2 1 0 3
Linux 0 2 2 1 1 1 0 0 0 0 0 1 0 3 1 2 1 0 0 1 4 0 4 2 0 1 0 0 3 1 1 0 3 0 1 1 2 2 0 0 1 3 2 0 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.

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 Linux and BSD options
  • Symbol Index for hosts and aliases (Ctrl+R or Cmd+R)

SSHD Config

  • Keyword completion for many Linux and BSD options
  • Symbol Index for active config options (Ctrl+R or Cmd+R)

Commands

  • Open SSH Config File
  • Open SSHD Config File

Extras

  • authorized_keys and known_hosts also have
    • Syntax highlighting
    • Symbol index
    • Available commands (though you have to map them yourself)

To-Do

  • Configurable file locations for the “open” commands
  • (Even) better SSHD Config syntax