Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Chilkat/SFTP and key authentication
Message
 
To
29/06/2022 02:51:09
General information
Forum:
Visual FoxPro
Category:
Third party products
Miscellaneous
Thread ID:
01684582
Message ID:
01684607
Views:
47
Thanks for your detailed explanation but the problem, probably I was not able to point that clearlx, is not the server and connecting to it. I am using chilkat for sending and receiving data from my customers server, using ftp and since while sftp with authentication by username and password. Everything works fine.
Now he wants to change to key-authentication.
I generated key-pairs by using
- sshkeygen
- sshkeygen with -o to genrate openssh-format
- puttygen

For testing I use also the Rebex Tiny SFTP-Server in addition to my customers server

These pair work fine with both server when I use Filezille as SFTP-client. No problem with key-authentication.

Now, when I try to load one this private
keys in the sshkey-object of Chilkat, it fails.
Just to make clear, I am using the different methods for loading the different keys in different formats
The first step, connecting to the server, works fine.
Best regards
Thomas



*************************************
To summarize, you're trying to use Chilkat to connect to an SFTP server - is that correct? If so:
- Are you able to connect using other clients, but not with Chilkat, or
- You're not able to connect to that server with anything?

Some possibilities, not specific to Chilkat:

- Does the SFTP server have source IP restrictions? I've encountered some which will only accept connections from a list of approved IP addresses
- If you're using private/public key pairs, does your public key need to be registered with the SFTP server so it will allow connections from you i.e. you send them your public key in advance? Alternately, maybe in their scenario it's necessary for them to generate a key pair for you, register your public key, then send you your private key using some secure transfer method

>Yes, I tried the different types with the different methods for loading a key-file, keys generated with puttygen, sshkey and openssh. But by now, all different methods have failed.
>Best regards
>Thomas
>
>>Hi there,
>>is there anybody who has used chilkat for SFTP-Transfer using key-authentication?
>>I tried using ssh-keygen generated key-pairs, also in openssh-format and puTTYgen-keys. All without any success. I can check some of them by using the Rebex Tiny-SFTP-Server and Filezilla but when I try to load a key with Chilkat (9.5.0.77) it fails.
>>Can someone point me the right direction?
>>Thanks in advance
>>Thomas
>
>I had it running for years to a customer site. The key file was given to us by the company whose site we were hitting.
>
>I admit to cheating: I just follow the appropriate example on the Chilkat site. Note that the examples are different for the 2 types of keys you mention.
>
>Hank
Previous
Reply
Map
View

Click here to load this message in the networking platform