Last active
March 22, 2021 12:58
-
-
Save fullenw1/28082ddceb38143f4ed9df7102580423 to your computer and use it in GitHub Desktop.
Remoting configuration for Windows Terminal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// To view the default settings, hold "alt" while clicking on the "Settings" button. | |
// For documentation on these settings, see: https://aka.ms/terminal-documentation | |
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}", | |
"profiles": { | |
"list": [ | |
{ | |
"guid": "{4af2f036-8118-4af3-a28b-c2044894a74c}", | |
"name": "SSH to PowerShell Core", | |
"commandline": "pwsh.exe -NoProfile -NoExit -Command &{param([Parameter(Mandatory,HelpMessage='<UserName>@<ComputerName>:<PortNumber>|<UserName>@<ComputerName>|<ComputerName>:<PortNumber>|<ComputerName>')]$HostName)$Host.UI.RawUI.WindowTitle=$HostName;Enter-PSSession -HostName $HostName -Subsystem 'pwsh'}", | |
"icon": "ms-appx:///ProfileIcons/{574e775e-4f2a-5b96-ac1e-a2962a402336}.png", | |
"hidden": false | |
}, | |
{ | |
"guid": "{e5ee7363-c4d0-4413-a3e9-764d51004769}", | |
"name": "SSH to PowerShell Core with KeyFile", | |
"commandline": "pwsh.exe -NoProfile -NoExit -Command &{param([Parameter(Mandatory,HelpMessage='<UserName>@<ComputerName>:<PortNumber>|<UserName>@<ComputerName>|<ComputerName>:<PortNumber>|<ComputerName>')]$HostName,[Parameter(Mandatory,HelpMessage='c:\\<path>\\userKey_rsa')]$KeyFilePath)$Host.UI.RawUI.WindowTitle=$HostName;Enter-PSSession -HostName $HostName -KeyFilePath $KeyFilePath -Subsystem 'pwsh'}", | |
"icon": "ms-appx:///ProfileIcons/{574e775e-4f2a-5b96-ac1e-a2962a402336}.png", | |
"hidden": false | |
}, | |
{ | |
"guid": "{5fb07b72-2cc2-457a-9761-f1863f51a202}", | |
"name": "PSRemoting to PowerShell Core", | |
"commandline": "pwsh.exe -NoProfile -NoExit -Command &{param([Parameter(Mandatory)]$ComputerName)$Host.UI.RawUI.WindowTitle=$ComputerName;Enter-PSSession -ComputerName $ComputerName -ConfigurationName PowerShell.7}", | |
"icon": "ms-appx:///ProfileIcons/{574e775e-4f2a-5b96-ac1e-a2962a402336}.png", | |
"hidden": false | |
}, | |
{ | |
"guid": "{56dbd21a-06e1-4ec0-84bc-3c7146370c06}", | |
"name": "PSRemoting to PowerShell Core with Credential", | |
"commandline": "pwsh.exe -NoProfile -NoExit -Command &{param([Parameter(Mandatory)]$ComputerName)$Host.UI.RawUI.WindowTitle=$ComputerName;Enter-PSSession -ComputerName $ComputerName -ConfigurationName PowerShell.7 -Credential (Get-Credential)}", | |
"icon": "ms-appx:///ProfileIcons/{574e775e-4f2a-5b96-ac1e-a2962a402336}.png", | |
"hidden": false | |
}, | |
{ | |
"guid": "{df187850-acfa-4859-98b3-fc9ef8a18fac}", | |
"name": "SSH to Windows PowerShell", | |
"commandline": "pwsh.exe -NoProfile -NoExit -Command &{param([Parameter(Mandatory,HelpMessage='<UserName>@<ComputerName>:<PortNumber>|<UserName>@<ComputerName>|<ComputerName>:<PortNumber>|<ComputerName>')]$HostName)$Host.UI.RawUI.WindowTitle=$HostName;Enter-PSSession -HostName $HostName -Subsystem 'powershell'}", | |
"icon": "ms-appx:///ProfileIcons/{61c54bbd-c2c6-5271-96e7-009a87ff44bf}.png", | |
"colorScheme": "Campbell Powershell", | |
"hidden": false | |
}, | |
{ | |
"guid": "{a18a4df0-e051-40d1-afe1-d593fa62278f}", | |
"name": "SSH to Windows PowerShell with KeyFile", | |
"commandline": "pwsh.exe -NoProfile -NoExit -Command &{param([Parameter(Mandatory,HelpMessage='<UserName>@<ComputerName>:<PortNumber>|<UserName>@<ComputerName>|<ComputerName>:<PortNumber>|<ComputerName>')]$HostName,[Parameter(Mandatory,HelpMessage='c:\\<path>\\userAKey_rsa')]$KeyFilePath)$Host.UI.RawUI.WindowTitle=$HostName;Enter-PSSession -HostName $HostName -KeyFilePath $KeyFilePath -Subsystem 'powershell'}", | |
"icon": "ms-appx:///ProfileIcons/{61c54bbd-c2c6-5271-96e7-009a87ff44bf}.png", | |
"colorScheme": "Campbell Powershell", | |
"hidden": false | |
}, | |
{ | |
"guid": "{a8489413-9231-488c-a288-b58d15580476}", | |
"name": "PSRemoting to Windows PowerShell", | |
"commandline": "pwsh.exe -NoProfile -NoExit -Command &{param([Parameter(Mandatory)]$ComputerName)$Host.UI.RawUI.WindowTitle=$ComputerName;Enter-PSSession -ComputerName $ComputerName}", | |
"icon": "ms-appx:///ProfileIcons/{61c54bbd-c2c6-5271-96e7-009a87ff44bf}.png", | |
"colorScheme": "Campbell Powershell", | |
"hidden": false | |
}, | |
{ | |
"guid": "{8162f340-84d4-44a2-a47c-3081f47a0ef7}", | |
"name": "PSRemoting to Windows PowerShell with Credential", | |
"commandline": "pwsh.exe -NoProfile -NoExit -Command &{param([Parameter(Mandatory)]$ComputerName)$Host.UI.RawUI.WindowTitle=$ComputerName;Enter-PSSession -ComputerName $ComputerName -Credential (Get-Credential)}", | |
"icon": "ms-appx:///ProfileIcons/{61c54bbd-c2c6-5271-96e7-009a87ff44bf}.png", | |
"colorScheme": "Campbell Powershell", | |
"hidden": false | |
}, | |
{ | |
"guid": "{0caa0dad-35be-5f56-a8ff-afceeeaa6101}", | |
"name": "cmd", | |
"commandline": "cmd.exe", | |
"startingDirectory": "%userprofile%\\Documents\\PowerShell", | |
"hidden": false | |
}, | |
{ | |
"guid": "{b453ae62-4e3d-5e58-b989-0a998ec441b8}", | |
"name": "Azure Cloud Shell", | |
"source": "Windows.Terminal.Azure", | |
"hidden": false | |
} | |
] | |
}, | |
// Add custom color schemes to this array | |
"schemes": [ | |
{ | |
"name": "cmd-legacy", | |
"foreground": "#C0C0C0", | |
"background": "#000000", | |
"black": "#000000", | |
"red": "#800000", | |
"green": "#008000", | |
"yellow": "#808000", | |
"blue": "#000080", | |
"purple": "#800080", | |
"cyan": "#008080", | |
"white": "#C0C0C0", | |
"brightBlack": "#808080", | |
"brightRed": "#FF0000", | |
"brightGreen": "#00FF00", | |
"brightYellow": "#FFFF00", | |
"brightBlue": "#0000FF", | |
"brightPurple": "#FF00FF", | |
"brightCyan": "#00FFFF", | |
"brightWhite": "#FFFFFF" | |
} | |
], | |
// Add any keybinding overrides to this array. | |
// To unbind a default keybinding, set the command to "unbound" | |
"keybindings": [] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment