Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Since 2025.02. Allow connecting to a SFTP server using a private key instead of username and password. File location of the sftp private key to be used for authentication when connecting to the sftp server. Only absolute paths are supported. Only RSA and ECDSA PEM keys are supported. Ed25519 is supported from 2026.01. Typically generated with: 'ssh-keygen -t rsa -m PEM -f my_rsa_key.pem' or 'ssh-keygen -t ecdsa -b 521 -m PEM -f ecdsa'. It may be required to specify the supported algorithms when specifying a private key.  The following are an example of JVM options that may be required for older sftp servers that have not been upgraded with the latests security standards. It is adviced to upgrade the sftp server to support the latest certificates. In case this is not possible, the following JVM setting can work around this.

Code Block
languagepython
-Djsch.server_host_key=ssh-ed25519,ecdsa-sha2-nistp256,rsa-sha2-512,rsa-sha2-256,ssh-rsa,ssh-dss 
-Djsch.PubkeyAcceptedAlgorithms=ssh-ed25519,ecdsa-sha2-nistp256,rsa-sha2-512,rsa-sha2-256,ssh-rsa,ssh-dss

...