Onlinestorage Connection Error

Get help for specific problems
Posts: 4
Joined: 12 Dec 2022

Pepschmier

Hello,

I am trying to configure an automatic File Sync to an external FTP-Server.
I Authenticate using a Private-Key. The connection works with FileZilla and WinSCP without any Problems.

Trying to connect to the same server with FreeFileSync using the "Connect to Onlinestorage" button and selecting SFTP, gives me this Error Message:

The final path "sftp://username@ServerURL" cannot be determined (loosely Translated from German)

LIBSSH2_ERROR_PROTO: Error parsing PEM: offset out of bounds
[libssh2_userauth_publickey_frommemory]

Does anyone have an Idea whats wrong? That Error Message sadly doesn't help me at all.

Thanks in advance.
Posts: 4
Joined: 12 Dec 2022

Pepschmier

I had to convert the Private Key to a OpenSSH Key using PuTTYgen.
After that it worked fine.
User avatar
Site Admin
Posts: 7211
Joined: 9 Dec 2007

Zenju

How did you generate the private key that it's neither in OpenSSH, nor Putty ppk format? I'm assuming it's in "raw" format, DER-encoded PKCS#1.
Posts: 4
Joined: 12 Dec 2022

Pepschmier

I had a Putty (ppk) Private Key. And that worked with Filezilla and WinSCP, but not with FFS.
I converted that key into OpenSSH format and it also worked with FFS.
User avatar
Site Admin
Posts: 7211
Joined: 9 Dec 2007

Zenju

Looks like Putty has a new ppk format (version 3). FreeFileSync currently only understands version 2.
User avatar
Site Admin
Posts: 7211
Joined: 9 Dec 2007

Zenju

Fixed:
FreeFileSync 11.30
------------------
Support PuTTY private key file format version 3
https://www.mediafire.com/file/b7jeytlohyjwx2s/FreeFileSync_11.30_%255BBeta%255D_Windows_Setup.exe