Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

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?
Guest

martin wrote:

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

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?
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

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

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

Re: Private key format reported as invalid

Thanks for your report.

This bug has been added to the tracker:
https://winscp.net/tracker/1080
bobes

Re: Private key format reported as invalid

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.
bobes

Private key format reported as invalid

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.