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.
I would also like to know this
This post is under review.
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 --