Currently I am trying to send a file from a CR1000x to a Azure SFTP server. I have setup the system the same as linked here https://www.campbellsci.com.au/blog/generate-sftp-keys-easily, Currently the session fails with error message “Unable to exchange encryption keys”. I can confirm the server credentials and keys are correct as I can connect with a desktop client. I have done some packet capturing and I currently suspect the issue is the CR1000x doesn’t support the same server_key_host_algorithms as the Azure SFTP server. Could this be the issue?
CR1000X “server_host_key_algorithms string: ssh-rsa”
AZURE SFTP “server_host_key_algorithms string: rsa-sha2-256,rsa-sha2-512,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384”
The program is simple as I’m testing by sending a static file, below is the FTPClient function I’m using:
FTPResult = FTPClient (FTPServer,FTPUsername,"","CPU:Test.txt","/logger_test_1/Test.txt",22)
This post is under review.