Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Chilkat/SFTP and key authentication
Message
 
To
30/06/2022 17:50:57
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
01684582
Message ID:
01684613
Views:
50
Hi Antonio,

thanks for your help.

*1. Try with the latest Chilkat versio. *Current version is 91 (just launched).

I used the latest version from Chilkat

*2. Always look at .LastErrorText (or its *variants). What's in there is usually quite i*nformative and able to provide *meaningful hints.

That's what I do. The message ix, that the private key is invalid

3. Can you share your code?
loPuttyKey = CreateObject('Chilkat_9_5_0.SshKey')
lcPpkText = loPuttyKey.LoadText("d:\ssh2\chilkat_rsa_priv.ppk")

* "secret" is the actual password for the above PPK.
loPuttyKey.Password = "Muehlematt"
lnSuccess = loPuttyKey.FromPuttyPrivateKey(lcPpkText)
IF (lnSuccess <> 1) THEN
    ? loPuttyKey.LastErrorText
    _cliptest = loPuttyKey.LastErrorText
    RELEASE loSftp
    RELEASE loPuttyKey
    CANCEL
ENDIF
The most interesting question to you is: What did you use to generate the keys that are working for you?

Best regards

Thomas
Previous
Reply
Map
View

Click here to load this message in the networking platform