Key exchange (KEX) algorithms are the methods ProVide’s SFTP (SSH) server uses to securely negotiate a shared encryption key with each connecting client. ProVide’s default KEX algorithms are ECDH-SHA2-CURVE25519, DIFFIE-HELLMAN-GROUP-EXCHANGE-SHA256, and DIFFIE-HELLMAN-GROUP14-SHA1. You can change which algorithms are offered by editing the [SFTP KEX Algorithms] section of the Settings.ini configuration file.
How to change the KEX algorithms #
- Back up your
Settings.inifile first. - Stop the ProVide service (changes to
Settings.iniare applied on startup). - Open
Settings.iniand edit the[SFTP KEX Algorithms]section to list the algorithms you want to allow, in order of preference. - Save the file and restart the ProVide service.
During each connection, ProVide and the client agree on the first algorithm they both support, so the order and the set you list determine what actually gets used.
Configurating settings.ini #
You configure the allowed SFTP key exchange (KEX) algorithms in the [SFTP KEX Algorithms] section of Settings.ini. List every algorithm you want to allow on a single line, inside one pair of quotes, separated by commas. Put your strongest, most preferred algorithm first.
Format #
The following is the correct format when settings up the KEX algorithms:
"CURVE25519, ECDH-SHA2-NISTP256, DIFFIE-HELLMAN-GROUP16-SHA512"
Common mistake to avoid #
Do not put each algorithm on its own line and do not wrap each one in its own quotes. ProVide will not read the list correctly and key exchange can fail. This does not work:
"CURVE25519"
"ECDH-SHA2-NISTP256"
"DIFFIE-HELLMAN-GROUP16-SHA512"
Supported KEX algorithm values #
This list shows all supported KEX algorithm values for ProVide:
[SFTP KEX Algorithms]
"DIFFIE-HELLMAN-GROUP14-SHA256"
"DIFFIE-HELLMAN-GROUP15-SHA512"
"DIFFIE-HELLMAN-GROUP16-SHA512"
"DIFFIE-HELLMAN-GROUP17-SHA512"
"DIFFIE-HELLMAN-GROUP18-SHA512"
"DIFFIE-HELLMAN-GROUP-SHA1"
"DIFFIE-HELLMAN-GROUP-EXCHANGE-SHA1"
"DIFFIE-HELLMAN-GROUP14-SHA1"
"DIFFIE-HELLMAN-GROUP-EXCHANGE-SHA256"
"RSA1024-SHA1"
"RSA2048-SHA256"
"ECDH-SHA2-NISTP256"
"ECDH-SHA2-NISTP384"
"ECDH-SHA2-NISTP521"
"ECDH-SHA2-NISTK163"
"ECDH-SHA2-NISTP192"
"ECDH-SHA2-NISTP224"
"ECDH-SHA2-NISTK233"
"ECDH-SHA2-NISTB233"
"ECDH-SHA2-NISTK283"
"ECDH-SHA2-NISTK409"
"ECDH-SHA2-NISTB409"
"ECDH-SHA2-NISTK571"
"ECDH-SHA2-CURVE25519"
"CURVE25519"
"CURVE448"
"GSS-GROUP-EXCHANGE-SHA1"
"GSS-GROUP-SHA1"
"GSS-GROUP14-SHA1"
Security note #
To harden your server, favour the modern options such as ECDH-SHA2-CURVE25519, CURVE25519, CURVE448, and the SHA-512 Diffie-Hellman groups, and drop the older SHA-1-based entries where your clients allow it. DIFFIE-HELLMAN-GROUP14-SHA1 ships in the defaults for compatibility, but SHA-1 exchanges are weaker than the CURVE25519 and SHA-256/512 options, so remove it if none of your clients need it.
Always test with your actual SFTP clients after editing the list: if the server and a client share no common KEX algorithm, that client won’t be able to connect.