Feature to ssh to a windows terminal profile #16745

Closed
opened 2026-01-31 05:21:29 +00:00 by claunia · 4 comments
Owner

Originally created by @s-nil on GitHub (Feb 11, 2022).

Description of the new feature/enhancement

A feature where I ssh to a system and the cli is a windows terminal profile.

Proposed technical implementation details (optional)

Originally created by @s-nil on GitHub (Feb 11, 2022). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> # Description of the new feature/enhancement A feature where I ssh to a system and the cli is a windows terminal profile. <!-- A clear and concise description of what the problem is that the new feature would solve. Describe why and how a user would use this new functionality (if applicable). --> # Proposed technical implementation details (optional) <!-- A clear and concise description of what you want to happen. -->
Author
Owner

@zadjii-msft commented on GitHub (Feb 11, 2022):

Can you give us more details? Like, are you trying to create a Terminal profile with a commandline like ssh foo@bar.com? Or are you trying to remotely log in to a machine, and then once you're logged in, run a process that just so happens to be a Terminal profile that's set up on that machine?

@zadjii-msft commented on GitHub (Feb 11, 2022): Can you give us more details? Like, are you trying to create a Terminal profile with a commandline like `ssh foo@bar.com`? Or are you trying to remotely log in to a machine, and then once you're logged in, run a process that just so happens to be a Terminal profile that's set up on that machine?
Author
Owner

@s-nil commented on GitHub (Feb 11, 2022):

I’ve a default profile in windows terminal. When I ssh to the this windows machine from some other machine say Linux, it opens powershell. What I’m trying to do is to ssh to windows and the default command interface for ssh in the default profile of windows terminal.

@s-nil commented on GitHub (Feb 11, 2022): I’ve a default profile in windows terminal. When I ssh to the this windows machine from some other machine say Linux, it opens powershell. What I’m trying to do is to ssh to windows and the default command interface for ssh in the default profile of windows terminal.
Author
Owner

@phil-blain commented on GitHub (Feb 17, 2022):

Hi @s-nil, this is not something that can be configured on the Windows Terminal side, but rather on the OpenSSH side. Take a look at https://github.com/PowerShell/Win32-OpenSSH/wiki/DefaultShell. Basically, what you seem to want is to set OpenSSH's default shell to what you have in the commandline field of your default Terminal profile.

EDIT Official Microsoft documentation for this seems to be here: https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_server_configuration#configuring-the-default-shell-for-openssh-in-windows

@phil-blain commented on GitHub (Feb 17, 2022): Hi @s-nil, this is not something that can be configured on the Windows Terminal side, but rather on the OpenSSH side. Take a look at https://github.com/PowerShell/Win32-OpenSSH/wiki/DefaultShell. Basically, what you seem to want is to set OpenSSH's default shell to what you have in the `commandline` field of your default Terminal profile. **EDIT** Official Microsoft documentation for this seems to be here: https://docs.microsoft.com/en-us/windows-server/administration/openssh/openssh_server_configuration#configuring-the-default-shell-for-openssh-in-windows
Author
Owner

@zadjii-msft commented on GitHub (Feb 17, 2022):

Yea, that's my understanding of how SSH works. This is something that can already be configured on the SSH side, albeit a bit manually. If you don't want to have to set up the commandline manually each time (and instead keep it in sync with the settings in the Terminal), I'd recommend filing a new feature request on OpenSSH to support that.

@zadjii-msft commented on GitHub (Feb 17, 2022): Yea, that's my understanding of how SSH works. This is something that can already be configured on the SSH side, albeit a bit manually. If you don't want to have to set up the commandline manually each time (and instead keep it in sync with the settings in the Terminal), I'd recommend filing a new feature request on OpenSSH to support that.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#16745