Topic "Private key format reported as invalid"

Author Message
bobes

Guest


Hello,

Private keys in proper PPK putty format are reported as invalid when entered through SSH -> Authentication -> Private Key File dialog. Not sure why WinSCP is not able to recognize this format, I have no problem with Putty 0.63 and I am almost sure older version of WinSCP got no problem as well.
Advertisements
bobes

Guest


Just to replicate the problem:

WinSCP version 5.2.5, Windows 7 x64

Key format: PPK
PuTTY-User-Key-File-2: ssh-dss
Encryption: aes256-cbc

After pressing Ignore and saving the config, login procedure using the secret key works with no problem.
ppk-error.gif (11.83 KB)

Description: Dialog window with error

ppk-error.gif

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Thanks for your report.

This bug has been added to the tracker:
https://winscp.net/tracker/show_bug.cgi?id=1080
Guest




The error is still present via command line, I use a batch like this:

start winscp.exe sftp://ubuntu@X.Y.W.Z /privatekey=mykey.ppk

response

<invalid link removed>
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Anonymous wrote:
The error is still present via command line, I use a batch like this:

start winscp.exe sftp://ubuntu@X.Y.W.Z /privatekey=mykey.ppk

response

<invalid link removed>

That's a different error. Most likely the private key file does not exist in the path given. Are you sure that you start WinSCP in the folder, where the key is stored? Have you tried using full path to the key?
Guest




No, the file is present, I opened a CMD in the directory winscp and in the same directory there is also the key, but for some reason it does not find it.

Today I made other tests. The strange thing is that if I copy the whole dir to another PC it works, so at this point there must be something strange in my PC, but if I open the program and load the key from the GUI it works.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Quote:
but if I open the program and load the key from the GUI it works.

What is a full path that GUI shows when you select the key? Can you post a session log file showing authentication after you select key in GUI?
_________________
Martin Prikryl
Guest




prikryl wrote:
Quote:
but if I open the program and load the key from the GUI it works.

What is a full path that GUI shows when you select the key? Can you post a session log file showing authentication after you select key in GUI?


Confirming that I'm also seeing this.

If I click on "Ignore", the key is accepted and authenticates with no issue.

The error is only when selecting the key initially.

This is in 5.5.1.b3970
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Quote:
Confirming that I'm also seeing this.

If I click on "Ignore", the key is accepted and authenticates with no issue.

The error is only when selecting the key initially.

This is in 5.5.1.b3970

The same answer:
What is a full path that GUI shows when you select the key? Can you post a session log file showing authentication after you select key in GUI?
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License