Unable to specify file for ssh-keygen (can't enter text) #10392

Open
opened 2026-01-31 02:20:25 +00:00 by claunia · 9 comments
Owner

Originally created by @Jacob-Bishop on GitHub (Aug 30, 2020).

Environment

Windows build number: 10.0.18362.0
Windows Terminal version: 1.2.2381.0
ssh-keygen 7.7.2.1 

Steps to reproduce

  1. Open a new powershell shell in Windows Terminal
  2. run the ssh-keygen powershell command.

Expected behavior

When prompted to specify the file to save the key in, I am able to enter text.

Actual behavior

Typing does not produce visible text, and hitting enter does not cause ssh-keygen to continue. I am able to break execution with Control-z, however.

Notes

ssh-keygen behaves as expected when run in a powershell shell in conhost.exe.

Originally created by @Jacob-Bishop on GitHub (Aug 30, 2020). # Environment ```none Windows build number: 10.0.18362.0 Windows Terminal version: 1.2.2381.0 ssh-keygen 7.7.2.1 ``` # Steps to reproduce 1. Open a new powershell shell in Windows Terminal 2. run the `ssh-keygen` powershell command. # Expected behavior When prompted to specify the file to save the key in, I am able to enter text. # Actual behavior Typing does not produce visible text, and hitting enter does not cause ssh-keygen to continue. I am able to break execution with Control-z, however. # Notes ssh-keygen behaves as expected when run in a powershell shell in conhost.exe.
claunia added the Help WantedIssue-BugArea-InputProduct-TerminalPriority-2 labels 2026-01-31 02:20:25 +00:00
Author
Owner

@WSLUser commented on GitHub (Aug 31, 2020):

Can you reproduce with Win32-OpenSSH 8.1?

@WSLUser commented on GitHub (Aug 31, 2020): Can you reproduce with Win32-OpenSSH 8.1?
Author
Owner

@Jacob-Bishop commented on GitHub (Sep 4, 2020):

@WSLUser Do you have a reason to think that this issue likely to specific to the version of ssh-keygen I'm running, given that the problem doesn't occur when running in a conhost powershell terminal?

If yes, is https://github.com/PowerShell/Win32-OpenSSH/releases/tag/v8.1.0.0p1-Beta the release you wanted me to test? If not, can you link to the exact release?

@Jacob-Bishop commented on GitHub (Sep 4, 2020): @WSLUser Do you have a reason to think that this issue likely to specific to the version of ssh-keygen I'm running, given that the problem doesn't occur when running in a conhost powershell terminal? If yes, is [https://github.com/PowerShell/Win32-OpenSSH/releases/tag/v8.1.0.0p1-Beta](https://github.com/PowerShell/Win32-OpenSSH/releases/tag/v8.1.0.0p1-Beta) the release you wanted me to test? If not, can you link to the exact release?
Author
Owner

@WSLUser commented on GitHub (Sep 4, 2020):

That's the one and its not about the version of key-gen so much as the Windows support that was added between 7.7 and 8.1 including console support.

@WSLUser commented on GitHub (Sep 4, 2020): That's the one and its not about the version of key-gen so much as the Windows support that was added between 7.7 and 8.1 including console support.
Author
Owner

@ghost commented on GitHub (Sep 8, 2020):

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@ghost commented on GitHub (Sep 8, 2020): This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for **4 days**. It will be closed if no further activity occurs **within 3 days of this comment**.
Author
Owner

@jdebp commented on GitHub (Sep 27, 2020):

For what it's worth, I've seen the same behaviour as the opener of the issue, with Windows Terminal 1.3.2651.0 , and this is indeed a difference from running it with the old console server.

@jdebp commented on GitHub (Sep 27, 2020): For what it's worth, I've seen the same behaviour as the opener of the issue, with Windows Terminal 1.3.2651.0 , and this is indeed a difference from running it with the old console server.
Author
Owner

@Jacob-Bishop commented on GitHub (Oct 3, 2020):

@WSLUser Apologies for the delay in responding -- this issue no longer occurs with version 8.1 of ssh-keygen.

@Jacob-Bishop commented on GitHub (Oct 3, 2020): @WSLUser Apologies for the delay in responding -- this issue no longer occurs with version 8.1 of `ssh-keygen`.
Author
Owner

@zadjii-msft commented on GitHub (Jan 26, 2021):

In #8814, @sba923 had a similar issue, even with C:\OpenSSH-Win64\8.1.0.0p1-Beta\OpenSSH-Win64\ssh-keygen.exe. For them, the issue went away after a reboot.

@zadjii-msft commented on GitHub (Jan 26, 2021): In #8814, @sba923 had a similar issue, even with `C:\OpenSSH-Win64\8.1.0.0p1-Beta\OpenSSH-Win64\ssh-keygen.exe`. For them, the issue went away after a reboot.
Author
Owner

@sba923 commented on GitHub (Jan 28, 2021):

In #8814, @sba923 had a similar issue, even with C:\OpenSSH-Win64\8.1.0.0p1-Beta\OpenSSH-Win64\ssh-keygen.exe. For them, the issue went away after a reboot.

To be more specific, even newly created Windows Terminal tabs running PowerShell were not affected. Rebooting just made the very specific affected instance vanish 😉

@sba923 commented on GitHub (Jan 28, 2021): > In #8814, @sba923 had a similar issue, even with `C:\OpenSSH-Win64\8.1.0.0p1-Beta\OpenSSH-Win64\ssh-keygen.exe`. For them, the issue went away after a reboot. To be more specific, even newly created Windows Terminal tabs running PowerShell were not affected. Rebooting just made the very specific affected instance vanish 😉
Author
Owner

@sba923 commented on GitHub (Mar 19, 2021):

Just experienced the exact same issue with netsh launched from PowerShell 7.1.3 running in a Windows Terminal Preview 1.7.572.0 tab. In another (new) tab, the issue cannot be repro'ed. Created #9546.

@sba923 commented on GitHub (Mar 19, 2021): Just experienced the **exact same issue** with `netsh` launched from PowerShell 7.1.3 running in a Windows Terminal Preview 1.7.572.0 tab. In another (new) tab, the issue cannot be repro'ed. Created #9546.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#10392