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

SSH Config

SSH Config language and completions

Details

  • 3.4.1
    1.1.3
  • github.​com
  • github.​com
  • 1 month ago
  • 2 hours ago
  • 7 years ago

Installs

  • Total 12K
  • Win 4K
  • Mac 5K
  • Linux 3K
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 Feb 29 Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19
Windows 0 2 2 3 1 1 1 0 5 1 1 5 1 0 1 3 2 1 2 2 2 2 3 3 2 0 2 0 0 0 1 0 2 1 1 1 3 1 7 1 0 0 1 2 1 1
Mac 2 1 2 4 4 1 4 3 2 4 1 3 1 3 0 2 2 0 5 4 3 1 2 4 4 0 4 3 0 2 0 6 4 5 1 3 1 2 2 1 0 0 0 3 1 1
Linux 0 2 1 1 2 1 2 1 1 3 0 2 2 0 1 3 1 3 2 3 1 1 1 3 2 5 2 0 6 2 1 1 0 2 1 0 1 2 1 1 0 0 0 1 0 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.

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

To-Do

  • Completion and highlighting for crypto stuff (MACs, ciphers, algos)
  • Better highlighting for paths
  • Symbol Index for commented-out SSHD options