SFTP Public Key Authentication with id_ed25519

Question:

I have a vendor that wants me to send text files to their SFTP server.

They want me to use SFTP to send the files.

I have other vendors to which I use SFTP to send files but they use a password for authentication. I use Chilkat libraries to do the SFTP to those vendors.

This vendor has supplied me with the host name, a userid and 2 files:

id_ed25519.pub is my public key and id_ed25519 (with no extension) is my private key

I will not have a password.

Can you please point me to an example of VFP code to accomplish this?

 Answer:

See this example:   https://www.example-code.com/foxpro/sftp_public_key_authentication_id_ed25519.asp