PowerShell / PowerShell/Win32-OpenSSH

ssh-keygen.exe hangs for end user (related to issue #836)

Open
#1,595 15 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
8.3k
Forks
819
PR merge metrics
No merged PRs in 30d

Description

I am experiencing the same problem as issue 836.
ssh-keygen -t rsa
hangs at the step "Enter file in which to save the key
(C:\users\XXXX.ssh/id_rsa
or
ssh-keygen -t ecdsa
hangs at the step "Enter file in which to save the key
(C:\users\XXXX.ssh/id_ecdsa
Hitting control-Z will unhang the program, hitting control-C will not.
If I use the -P switch, it still hangs.
The problem is not seen when I run ssh-keygen under cmd.
I suspect the GitHub is not the best forum for this problem - I suspect it is a powershell issue.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing ssh-keygen -t rsa and ssh-keygen -t ecdsa in PowerShell, then compare them with the same commands under cmd. Read issue #836 and investigate the differing handling of the save-path prompt; done means the commands no longer hang in PowerShell, including when -P is used.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.