tomohulk / WinSCP

WinSCP PowerShell Wrapper Module
GNU General Public License v3.0
153 stars 30 forks source link

Puttygen PPK file version 3 not supported #143

Closed 1nampam closed 1 year ago

1nampam commented 1 year ago

Please fill in the following fields, replacing the values inside the brackets {{ }}.

Issue Description

{{ Using Puttygen PPK file version 3 not supported}}

Example

{{ $sess = new-WinSCPSessionOption -hostname 'sftp.server.com' -Protocol sftp -SshPrivateKeyPath "c:\keys\puttyPrivateConversionsV3.pkk" -SshkKeyFingerprint $hostkey New-SCPSession -SessionOption $sess }}

Expected Output

{{ no error }}

Actual Output

{{Output: New-WinSCPSession:Exception calling "Open wiht "1"" arguments.... Unable to load key file "c:\keys\puttyPrivateConversionsV3.pkk" (Pytty key format too new)}}

WinSCP-PowerShell Version

{{ Script 5.17.10.0 WinSCP }}\

Environment

{{ Windows 10 Ver. 21h1, PowerShell Version 7.2.7 and Openssh 8.1.0.1 for windows( on Windows server 2022 ver. 21h2). }}

1nampam commented 1 year ago

The PKK file version 3 does work with WINSCP 5.21.5 standard GUI

1nampam commented 1 year ago

Sorry, i posted this on the wrong project. This issue can be close.