clone ssh session support #8244

Closed
opened 2026-01-31 01:24:27 +00:00 by claunia · 5 comments
Owner

Originally created by @epiciskandar on GitHub (May 19, 2020).

Description of the new feature/enhancement

first of all, I know Windows Terminal is not a pure SSH connection client, so is this really a reasonable good idea I'm not really sure.
please consider supporting "clone session", it's really useful for man who has to connect via “springboard machine / machine fortress” and through 2-factor(even 3-factor sometimes) verification/authentication.
application like SecureCRT has this function called "Clone Session". putty has similar "Duplication Session" but useless because that new connection is totally a raw flesh.

Proposed technical implementation details (optional)

Originally created by @epiciskandar on GitHub (May 19, 2020). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 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 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). --> *first of all, I know Windows Terminal is not a pure SSH connection client, so is this really a reasonable good idea I'm not really sure.* please consider supporting "clone session", it's really useful for man who has to connect via “springboard machine / machine fortress” and through 2-factor(even 3-factor sometimes) verification/authentication. application like SecureCRT has this function called "Clone Session". putty has similar "Duplication Session" but useless because that new connection is totally a raw flesh. # Proposed technical implementation details (optional) <!-- A clear and concise description of what you want to happen. -->
claunia added the Issue-FeatureResolution-Duplicate labels 2026-01-31 01:24:27 +00:00
Author
Owner

@DHowett commented on GitHub (May 19, 2020):

Thank you for the request! It's possible to duplicate an open profile right now, but it's not possible for us to duplicate anything more than that. Here's why:

The important things about an SSH session are:

  • Username
  • Server
  • Password or Authentication Context

Since the username and the server can be encoded in the commandline, ctrl+shift+d can easily duplicate them. However, the password (or the authentication information) cannot be copied because Terminal is not going to get into the password business. It would increase the security risk of our project, and it's not a good feature for a generic terminal.

We have some requests for SSH session management, however. This might be a /dupe of #1280.

@DHowett commented on GitHub (May 19, 2020): Thank you for the request! It's possible to _duplicate an open profile_ right now, but it's not possible for us to duplicate anything more than that. Here's why: The important things about an SSH session are: * Username * Server * Password or Authentication Context Since the username and the server can be encoded in the commandline, <kbd>ctrl+shift+d</kbd> can easily duplicate them. However, the _password_ (or the authentication information) **cannot** be copied because Terminal is not going to get into the password business. It would increase the security risk of our project, and it's not a good feature for a generic terminal. We have some requests for SSH session management, however. This might be a /dupe of #1280.
Author
Owner

@ghost commented on GitHub (May 19, 2020):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (May 19, 2020): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Author
Owner

@byteroll commented on GitHub (Oct 14, 2021):

You could just add wsl.exe -- sshpass -p password ssh user@ip to Windows Terminal configurations.

@byteroll commented on GitHub (Oct 14, 2021): You could just add `wsl.exe -- sshpass -p password ssh user@ip` to Windows Terminal configurations.
Author
Owner

@DHowett commented on GitHub (Oct 14, 2021):

Instead of storing your password in a Terminal profile, and in the commandline of an application (which is trivially accessible to any other application on the system), you should be using public key authentication.

@DHowett commented on GitHub (Oct 14, 2021): Instead of storing your password in a Terminal profile, and in the commandline of an application (which is trivially accessible to any other application on the system), you should be using [public key authentication](https://linuxhint.com/ssh-public-key-authentication-on-linux/).
Author
Owner

@jaydu666 commented on GitHub (Jun 7, 2022):

I need "Duplication Session" too. using duplicate exist socket, not remember password.
like "openssh controlmaster", but windows not support unix socket.

@jaydu666 commented on GitHub (Jun 7, 2022): I need "Duplication Session" too. using duplicate exist socket, not remember password. like "openssh controlmaster", but windows not support unix socket.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#8244