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

SSH Config

SSH Config language and completions

Details

  • 4.0.0
    1.1.3
  • github.​com
  • github.​com
  • 2 months ago
  • 2 hours ago
  • 7 years ago

Installs

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