-
Notifications
You must be signed in to change notification settings - Fork 802
Closed
PowerShell/openssh-portable
#826Labels
Description
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest version
- Search the existing issues.
Steps to reproduce
when using ssh-keygen -K, usualy the keyname is somesing like hostname:user.pub
ssh-keygen will create 2 file with this name, one with no extention and one with .pub.
It fails on windows because of the colon. The -f option doesn't work because it is not taken in account with the -K option.
It works fine if using ssh delivered with git for windows (using bash.exe , it will put the unicode code of : in the file name like this : id_ed25519_sk_rk_yubi1user1.pub
Expected behavior
replace : with _ so filename can be created in windowsActual behavior
leave an empty file with filename truncated before the :Error details
Environment data
Name Value
---- -----
PSVersion 5.1.26100.7462
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.26100.7462
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1Version
OpenSSH_for_Windows_9.5p2, LibreSSL 3.8.2
Visuals
No response