Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

CR1000X SFTP communication


viktoroza May 3, 2023 04:07 PM

Hello, we are trying to setup the CR1000X datalogger to send data files to customer's SFTP server. We have generated the public and private keys using PuTTY as per the CS guide (https://www.campbellsci.cc/blog/generate-sftp-keys-easily). Those keys have been applied to the CR1000X through the Device Configuration Utility v2.26. The following line of the CRBasic code is used to connect the SFTP server:


FTP_result = FTPClient (IPAddress,UserName,Password,"DataTable",FTP_file_name,28,0,0,Min,-1008)


Can you confirm that the Username and Password filds are required for this connection, even though there is private/public key authentication present. The customer says we do not need the username and password to connect to their SFTP server. Please advise.


LorenFiedler Nov 27, 2023 10:42 PM

I would also like to know this


humpdainty Dec 6, 2023 03:03 AM

This post is under review.


miq Jan 21, 2024 03:24 PM

You still need to fill in the username and password in the FTPClient instruction, at least the correct username.

If the public/private key pair authentication fails - and if the server also allows password authentication - then normal username/password authentication will be used.

Hope it helps.

-- miq --

Log in or register to post/reply in the forum.