Skip to content

Instantly share code, notes, and snippets.

@erikvullings
Created January 30, 2022 10:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save erikvullings/751e3517b916dde5e38c757e7d0512be to your computer and use it in GitHub Desktop.
Save erikvullings/751e3517b916dde5e38c757e7d0512be 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