Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>SSH Config All In OneNew to Visual Studio Code? Get it now.
SSH Config All In One

SSH Config All In One

HNRobert

|
352 installs
| (3) | Free
Enhanced SSH config editing, providing autocompletion, formatting, hover support, and Quick Connect actions to ms-vscode-remote.remote-ssh.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

SSH Config All-In-One

Visual Studio Marketplace GitHub Apache License Open Issues Closed Issues

logo

Enhanced SSH Config Language Server extension for Visual Studio Code. Provides autocompletion, syntax highlighting, formatting, go to include file definitions, hover support, and quick connection actions for SSH config directives.

demo overall

Features

  • SSH Host Explorer: A dedicated activity bar panel that lists all your SSH hosts organized by config file, with inline actions to connect, edit, search, and manage hosts.
    • demo open in config
  • Recent Folders: The explorer shows recently connected remote folders under each host. Folders are loaded from VS Code's connection history and persist across sessions. Right-click any folder to permanently remove it from the list.
  • Copy SSH Commands: Right-click any host in the explorer to copy connection info to the clipboard:
    • Copy Host Alias — copies the host alias for use with ssh <alias>
    • Copy SSH Command — builds and copies the full command from the config (e.g. ssh user@hostname -p 2222 -i ~/.ssh/key) demo copy ssh command
  • Quick Connect CodeLens: Provides "Connect in Current Window..." and "Connect in New Window..." inline buttons above each Host declaration. Seamlessly connects to the server using the official ms-vscode-remote.remote-ssh extension.
    • demo of quick connect code lens
  • SSH Config Auto-Detection: Files whose name contains "config" are automatically detected as SSH Config when their content matches SSH Config patterns (e.g. Host, HostName, IdentityFile directives). Can be disabled via sshConfigAllInOne.detection.enabled.
  • Universal Formatter: Formats your SSH config regardless of where it's opened (local, remote workspace, or even unsaved untitled files).
  • Autocompletion: Provides rich suggestions as you type in an SSH config file.
  • Syntax Highlighting: Enhanced and refined syntax grammar.
  • Hover Support: Hover over any keyword to see a brief description of its function.
  • Go To Definition: Supports clicking through Include statements.
  • Customizable Formatting: Automatically indent directives under Host and Match blocks. Controlled via the sshConfigAllInOne.format.indentSize setting.

Formatting Example

Before:

Host example
HostName ssh.example.com
User admin
Port 22
IdentityFile ~/.ssh/mykey

After (using default 2 spaces):

Host example
  HostName ssh.example.com
  User admin
  Port 22
  IdentityFile ~/.ssh/mykey

Settings

  • sshConfigAllInOne.format.indentSize: The number of spaces used for indentation when formatting Host and Match blocks. (Default: 2)
  • sshConfigAllInOne.config.additionalFiles: Additional SSH config file paths to show in the explorer. Supports ~ for home directory.
  • sshConfigAllInOne.config.excludeDefaultFiles: Default SSH config file paths to exclude from the explorer.
  • sshConfigAllInOne.detection.enabled: Automatically detect files as SSH Config when the filename contains "config" and the content matches SSH Config patterns. (Default: true)
  • sshConfigAllInOne.include.mode: How to handle hosts from files discovered via Include directives — merge (add to parent), separate (show as own entry), or none. (Default: separate)
  • sshConfigAllInOne.include.maxDepth: How many levels of Include directives to follow — 0, 1, or unlimited. (Default: unlimited)

Acknowledgements

This project is deeply based on the fantastic work by jamief on vscode-ssh-config-enhanced. Thanks for providing the original repository and all of its underlying core language features.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft