The Windows Terminal app is advertised as a central hub for all terminal work, so I'm interested in a way to bring my SSH connections into it and replace ancient PuTTY.
You can use a commandline
field in your profile configuration to initiate an SSH connection on tab creation.
Step-by-step guide:
Command Prompt
tab). @dhgouveia2's post details this step."list"
array in the "profiles"
objectCommand Prompt
profile ("commandline": "cmd.exe"
)"guid"
value to a new GUID (for example, from here)commandline
value to "commandline" : "ssh me@my-server -p 22 -i ~/.ssh/id_rsa"
(use your own connection command)."name"
"icon" : "ms-appx:///ProfileIcons/{9acb9455-ca41-5af7-950f-6bca1bc9722f}.png"
item to use a Tux icon (default icons are here){
"$schema": "https://aka.ms/terminal-profiles-schema",
"profiles":
{
"list":
[
// ...
{
"guid": "{1d43c510-93e8-4960-a18b-e432641e0930}",
"name": "ssh my-server",
"icon" : "ms-appx:///ProfileIcons/{9acb9455-ca41-5af7-950f-6bca1bc9722f}.png",
"commandline": "ssh me@my-server -p 22 -i ~/.ssh/id_rsa"
}
]
}
}