Topic "Can't use private key to auth"

Author Message
MikeDawg
[View user's profile]

Joined: 2005-09-16
Posts: 5
Location: Colorado
Using latest WinSCP 5.5.1. I'm unable to use private key for authentication, inside WinSCP.

I got to configure the sftp site I'm attempting to connect to, I go to Advanced Site Settings, go to SSH -> Authentication -> Private key file:

Now, beforehand, I was given a private key file, from openssh. I opened it in Pagent, and converted (exported private key) as a PPK file. When I try and select this PPK, I get the error message:

"File '"C:\<path to ppk>\private_key.ppk"' does not exist or it does not contain private key in known format."

This same PPK file, however, will load into pagent, and I can auth using WinSCP and pagent; but I would just like to cut out the pagent middle-man, and just run the auth from WinSCP.
Advertisements
Simon T
[View user's profile]

Joined: 2014-02-24
Posts: 1
This happens if the path or file name contains spaces. WinSCP adds quotes at the beginning and end of the "Private key file" field which causes the error message. Deleting the quotes fixed the problem for me.
MikeDawg
[View user's profile]

Joined: 2005-09-16
Posts: 5
Location: Colorado
Simon T wrote:
This happens if the path or file name contains spaces. WinSCP adds quotes at the beginning and end of the "Private key file" field which causes the error message. Deleting the quotes fixed the problem for me.


That was the problem. Thank you sir!
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
Thanks for your report and resolution!

This bug has been added to the tracker:
http://winscp.net/tracker/show_bug.cgi?id=1130
thedudeza

Guest


Simon T wrote:
This happens if the path or file name contains spaces. WinSCP adds quotes at the beginning and end of the "Private key file" field which causes the error message. Deleting the quotes fixed the problem for me.



Thank y ou so much!!!
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