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

SSH Config

SSH Config language and completions

Details

  • 3.3.0
    1.1.3
  • github.​com
  • github.​com
  • 2 months ago
  • 8 minutes ago
  • 7 years ago

Installs

  • Total 12K
  • Win 4K
  • Mac 5K
  • Linux 3K
Jan 23 Jan 22 Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8 Jan 7 Jan 6 Jan 5 Jan 4 Jan 3 Jan 2 Jan 1 Dec 31 Dec 30 Dec 29 Dec 28 Dec 27 Dec 26 Dec 25 Dec 24 Dec 23 Dec 22 Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9
Windows 0 0 2 2 0 0 1 2 2 1 2 0 0 1 1 5 1 0 1 1 2 1 0 0 1 0 2 1 3 0 3 2 1 0 1 4 3 0 0 0 0 2 1 1 0 0
Mac 3 6 0 7 3 1 2 1 3 1 0 3 3 4 2 1 2 5 2 0 1 2 1 0 3 0 1 5 1 1 0 1 2 0 3 2 5 2 2 1 2 3 2 5 1 3
Linux 0 1 1 2 1 0 1 2 3 2 0 0 1 1 1 0 0 0 1 1 0 0 0 0 0 1 2 1 0 0 0 1 1 2 1 0 1 1 1 1 0 0 0 1 1 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