Skip to content

Instantly share code, notes, and snippets.

@ziritrion
Forked from erikvullings/readme.md
Created July 10, 2024 14:12
Show Gist options
  • Save ziritrion/fad985f9af6da6f4ca4cab25764408ba to your computer and use it in GitHub Desktop.
Save ziritrion/fad985f9af6da6f4ca4cab25764408ba to your computer and use it in GitHub Desktop.
Add SSH site to Windows Terminal

Source.

You can use a commandline field in your profile configuration to initiate an SSH connection on tab creation.

Step-by-step guide:

  1. Open Settings (Ctrl+,)
  2. Find the "list" array in the "profiles" object
  3. Duplicate a Command Prompt profile ("commandline": "cmd.exe")
  4. Change the commandline value to: ssh me@my-server -p 22 -i ~/.ssh/id_rsa (use your own connection command).
  5. Change the profile's "name"
  6. Add an "icon" : "ms-appx:///ProfileIcons/{9acb9455-ca41-5af7-950f-6bca1bc9722f}.png" item to use a Tux icon (default icons are here)

Save the configuration and enjoy the new item in the New Tab drop-down.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment