ssh-keygen hangs when run from PowerShell 7.1.1 in Windows Terminal, cannot repro with new tabs #12095

Open
opened 2026-01-31 03:06:17 +00:00 by claunia · 0 comments
Owner

Originally created by @sba923 on GitHub (Jan 18, 2021).

Environment

Windows build number: 10.0.18363.1256
Windows Terminal version (if applicable): 1.4.3243.0

PowerShell 7.1.1

C:\WINDOWS\System32\OpenSSH\ssh-keygen.exe
Product version: 'OpenSSH_7.7p1 for Windows'

Steps to reproduce

Run C:\WINDOWS\System32\OpenSSH\ssh-keygen.exe

Expected behavior

Input should be possible at the following prompt

Enter file in which to save the key (C:\Users\sbarizien/.ssh/id_rsa):

Actual behavior

No input is possible, the ssh-keygen.exe process needs to be terminated.

This behavior cannot be reproduced:

  1. in PowerShell 7.1.1 not running within Windows Terminal
  2. in other / new Windows Terminal tabs running PowerShell 7.1.1
  3. in Windows PowerShell 5.1 running within Windows Terminal
  4. on another machine running Windows 10 build 19042.746

So there is something special about this particular instance of PowerShell 7.1.1 running in that particular Windows Terminal tab.

I can keep that tab open as long as needed in order to diagnose the issue.

Originally created by @sba923 on GitHub (Jan 18, 2021). # Environment ```none Windows build number: 10.0.18363.1256 Windows Terminal version (if applicable): 1.4.3243.0 PowerShell 7.1.1 C:\WINDOWS\System32\OpenSSH\ssh-keygen.exe Product version: 'OpenSSH_7.7p1 for Windows' ``` # Steps to reproduce Run `C:\WINDOWS\System32\OpenSSH\ssh-keygen.exe` # Expected behavior Input should be possible at the following prompt `Enter file in which to save the key (C:\Users\sbarizien/.ssh/id_rsa):` # Actual behavior No input is possible, the `ssh-keygen.exe` process needs to be terminated. This behavior cannot be reproduced: 1. in PowerShell 7.1.1 not running within Windows Terminal 2. in other / new Windows Terminal tabs running PowerShell 7.1.1 3. in Windows PowerShell 5.1 running within Windows Terminal 4. on another machine running Windows 10 build 19042.746 So there is something special about this particular instance of PowerShell 7.1.1 running in that particular Windows Terminal tab. I can keep that tab open as long as needed in order to diagnose the issue.
claunia added the Resolution-Duplicate label 2026-01-31 03:06:17 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#12095