-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
Description
Windows Version
Microsoft Windows [Version 10.0.26100.3194]
WSL Version
2.4.11.0
Are you using WSL 1 or WSL 2?
- WSL 2
- WSL 1
Kernel Version
5.15.167.4-microsoft-standard-WSL2
Distro Version
Ubuntu 24.04.2 LTS
Other Software
No response
Repro Steps
Try to use ssh-keygen w/o passphrase.
Run:
wsl --exec ssh-keygen -t ed25519 -q -N "" -C user -f /tmp/user
Error:
The parameter is incorrect.
Error code: Wsl/Service/E_INVALIDARG
Originally this was discovered running the command programmatically spawning child process passing empty string as one of the args.
Expected Behavior
Using shell works as expected
wsl ssh-keygen -t ed25519 -q -N "" -C user -f /tmp/user
Output:
/tmp/user already exists.
Overwrite (y/n)? n
Actual Behavior
Error:
The parameter is incorrect.
Error code: Wsl/Service/E_INVALIDARG
Diagnostic Logs
No response