Handle SSH post-quantum key exchange warnings in WinSCP

If WinSCP shows an SSH key exchange warning, the server's preferred method is below the warning line in your preference list. Windows users and administrators of WinSCP sessions can usually resolve it by upgrading WinSCP and reordering key exchange methods.

On this page

What the WinSCP key exchange warning means and who has to act

WinSCP shows this warning when the first key exchange method it finds in your Key exchange preference list sits below the warn below here line. The warning box appears when you make the connection, in the same way WinSCP warns about a weak cipher. It describes a preference order, not an attack in progress. The connection is still encrypted, and the warning does not mean the session has been compromised. Treat it as a configuration question to answer on your own schedule, not as an emergency.

The person who owns the WinSCP site settings usually acts. That is normally the administrator who set up the stored session or the user who edits it in Advanced Site Settings. The Key exchange page is a subpage of the SSH page, and it appears only for SCP or SFTP sites. If you use WinSCP only as a client against a server someone else runs, the server operator decides which methods are offered, so confirm with them before you change your side. The WinSCP documentation describes the preference list as a choice of which method WinSCP prefers, and it lists post-quantum entries such as ML-KEM and NTRU Prime alongside ECDH, Diffie-Hellman and RSA-based methods.

Before you change anything, confirm which WinSCP version you run. Open Help then About in the main window, or Tools then About in the Login dialog. The release history lists ML-KEM support starting with the 6.4.2 beta, and the Key exchange page does not give a default order or version notes, so check the documentation for your build. Then run /info from the command line to see the key exchange algorithms your version supports, since the SSH algorithms page gives no default order. Record what you find before you edit the preference list.

Who controls the WinSCP key exchange setting

Three parties can affect which key exchange method WinSCP offers during a connection: the user editing a site, the administrator who manages shared or scripted sessions and raw settings, and the server operator who decides what the SFTP server accepts. Each card below says what that party can change, what they cannot change, and what to confirm before changing anything, so the warning is fixed at the right layer.

WinSCP user on the site's SSH page

A WinSCP user controls the preference list on the Key exchange page, reached from the SSH page in Advanced Site Settings for an SCP or SFTP site. Reordering the methods there tells WinSCP which method to prefer when it negotiates with that server. The page is available only for SCP or SFTP sites, so an FTP site has no key exchange setting to change. The user cannot change which methods the server offers. If the first method WinSCP finds falls below the warn below here line, WinSCP shows a warning at connection time. Check the site's protocol first, then reorder the list and reconnect to confirm the warning changes.

Key exchange page

Administrator of shared and scripted sessions

An administrator manages shared or scripted sessions, where the KEX value is set through the Raw Site Settings dialog, the -rawsettings switch of the scripting open command, or the /rawsettings parameter placed after the session URL. The documented example value is ecdh,dh-gex-sha1,dh-group14-sha1,rsa,WARN,dh-group1-sha1, where the token WARN separates substandard methods. Raw settings override what a user sees in the GUI, so a fix applied centrally can be silently overridden or can override a user's choice. Record each raw value in the configuration you distribute and confirm that scripts pass it on every run.

Raw settings docs

Server operator sets offered methods

The server operator decides which key exchange methods the SFTP server offers. WinSCP can only negotiate from what the server accepts, so a preference list cannot make the server offer a post-quantum method it does not support. Ask the operator which methods are enabled and whether a post-quantum method such as mlkem768x25519-sha256 or sntrup761x25519-sha512@openssh.com is among them. Changes on the server side affect every client, not only WinSCP, so they need coordination with the other teams that connect to it.

SSH algorithms page

Which version applies the setting

Which key exchange methods WinSCP can offer depends on the SSH core in the installed build. The release history says 6.0 beta moved to PuTTY 0.78 with NTRU Prime support, 6.4.2 beta added ML-KEM on a PuTTY 0.83 pre-release snapshot, and the 6.4.3 release candidate moved to PuTTY 0.83. Later builds upgraded the SSH core to PuTTY 0.84 and 0.85, and 6.7.1 was the latest released version as of 2026-12-04. Open Help then About to read the installed version. Older builds may not list the post-quantum methods at all, so check the version before deciding a setting is wrong.

Release history

Who confirms the offered methods

To see which algorithms a specific WinSCP build supports, run the /info command-line switch, which lists supported SSH and TLS/SSL algorithms. The command-line documentation does not describe a /version switch, so use the About dialog for the version number. Compare the /info output with the server's offered list. Methods absent from the build cannot be selected, whatever the preference order. Share this output with the administrator and the server operator when they disagree about what is supported.

Command-line reference

Logs show the negotiated result

Session logging is enabled on the Logging page of Preferences or with the /log parameter, and its default log level is Normal. The /loglevel values run from -1 to 2, mapping to Reduced, Normal, Debug 1 and Debug 2. Use the log to see which key exchange method was negotiated, and compare it with the warning text. Logs can contain sensitive connection details, so restrict who can read them and remove them when troubleshooting ends. A log that shows an unexpected method is evidence for the administrator or the server operator, not proof of a fault in WinSCP.

Logging docs

How to check which key exchange WinSCP negotiated

This sequence confirms the WinSCP version you are running, lists the key exchange algorithms that version supports, and turns on session logging so you can read the key exchange WinSCP actually negotiated with the server. Together these show whether the SSH post-quantum key exchange warning comes from the client's preference list, the server's offer, or a version without the method.

  1. Find the installed WinSCP version

    Open WinSCP and go to Help, then About in the main window. If you are on the Login dialog, you can use Tools, then About instead. Note the version number shown in the About window. This tells you which SSH core WinSCP is built on, which matters because the post-quantum methods in the facts were added in specific releases: ML-KEM arrived with 6.4.2 beta and NTRU Prime with 6.0 beta. You are done when you have the exact version string written down for your records.

  2. Compare the version against the release history

    Check the version you noted against the WinSCP release history. The history records SSH core upgrades, including PuTTY 0.83 in 6.4.3 RC and PuTTY 0.84 and 0.85 in later 6.6.x builds, and it lists 6.7.1 as the latest released version as of 2026-12-04. If your version is older than the release that introduced the method you need, the server's post-quantum offer cannot be matched by this build, and you should plan an update. Confirm the final decision with your own change process and the vendor's notes for your build.

  3. List the algorithms this version supports

    Open a command prompt and run WinSCP with the /info switch, for example by calling the WinSCP executable with /info from its install folder. The output lists the SSH and TLS/SSL algorithms this specific build supports. Look for the key exchange entries such as sntrup761x25519-sha512, mlkem768x25519-sha256 and mlkem1024nistp384-sha384. The WinSCP documentation notes that /info is the way to see your version's algorithms, and that the list is not a default order. You are done when you can see whether a post-quantum key exchange name appears in the output.

  4. Turn on session logging in preferences

    Open Preferences and go to the Logging page, then enable session logging and choose a log file location you can reach. The default log level is Normal. You may also start WinSCP with the /log parameter to write a log for a single run without changing your preferences. Confirm that logging is on before you connect, because a log created after the fact cannot show the negotiation. You are done when the logging setting is saved and the log path is shown.

  5. Set a log level that records key exchange

    For more detail on the key exchange, set the log level. The /loglevel command-line option accepts values from -1 to 2, which map to Reduced, Normal, Debug 1 and Debug 2. Debug levels produce more SSH detail, so use the lowest level that shows the negotiation. Check the WinSCP logging documentation for the exact level that includes the SSH key exchange lines in your build. You are done when the level is set and you have confirmed it in the logging settings or the command line you used.

  6. Connect and read the negotiated key exchange

    Connect to the server with logging enabled. Open the log file and search for the key exchange entries that WinSCP wrote during the handshake. The negotiated method is the one WinSCP reports as chosen. If the warning appeared, compare the chosen method with the post-quantum names you saw in the /info output. You are done when you can state which key exchange method was negotiated for this session, recorded from the log rather than inferred from settings.

  7. Compare the result with the server's offer

    Note the negotiated method and check it against what the server accepts. If your build lists a post-quantum method but the server still negotiates a classical one, the server may not offer the post-quantum method, or the preference order in WinSCP may rank a classical method first. The Key exchange page under SSH in Advanced Site Settings controls the preference list, and the WinSCP documentation says the list has no default order. Ask the server administrator which key exchange methods the server offers before changing anything. You are done when you have a written record of the client version, the supported methods, the negotiated method and the server's offer.

Causes of the WinSCP key exchange warning and the fix for each

This table pairs each cause of the WinSCP key exchange warning with the fix the WinSCP documentation supports. Read each row as a check to run in order, starting with the WinSCP version and then the preference list. The main takeaway is that the fix depends on which cause applies, and some settings do not change the order at all.

CauseWhat it looks likeFix from the sources
Older WinSCP versionThe installed version predates ML-KEM or NTRU Prime support, so those methods never appear in the preference list.Check the version under Help then About, then upgrade. WinSCP 6.0 added NTRU Prime, and 6.4.2 beta added ML-KEM.
Weaker method ranked firstThe preference list puts ecdh, dh-gex-sha1 or other older methods above the post-quantum hybrids.Move the ML-KEM or NTRU Prime hybrid methods to the top of the Key exchange preference list, or set the KEX raw setting with them first.
WARN placed before strong methodsThe WARN token sits above stronger methods, so the warning triggers even when a better method is available.Move WARN so it follows every method you want to allow, as in the documented example ecdh,dh-gex-sha1,dh-group14-sha1,rsa,WARN,dh-group1-sha1.
Server offers only weak methodsEvery method the server offers falls below the warn line, so WinSCP has nothing better to choose.Confirm the server's offered algorithms with the /info switch, then ask the server administrator to enable a post-quantum key exchange. WinSCP cannot select a method the server does not offer.
GSSAPI session with fixed orderThe connection uses GSSAPI authentication, where the preference order is fixed and the list has no effect.Changing the preference list does not alter this order. Check the GSSAPI key exchange behavior in the WinSCP Key exchange page and the server's configuration.

How to change the WinSCP key exchange preference order

This sequence moves a post-quantum key exchange method to the top of WinSCP's preference list, so the connection negotiates the method your server expects. It also confirms the change took effect, which is what removes the warning when the server supports the method. Check each step against your installed WinSCP version, because the available methods depend on the release.

  1. Confirm your WinSCP version

    Open Help, then About, in the main window, or Tools, then About, in the Login dialog, to read the installed version number. Compare it with the WinSCP history page to see which PuTTY-based SSH core and which post-quantum methods that release includes. Post-quantum entries such as ML-KEM were added in 6.4.2 beta, so older builds may not offer them. If your version is older, upgrade before continuing, and confirm the new version number in About.

  2. Check which methods your version supports

    Run WinSCP with the /info command-line switch to list the SSH algorithms this specific version supports, including key exchange methods such as sntrup761x25519-sha512 and mlkem768x25519-sha256 where present. Use the output to confirm that the method your server offers is available in your build. If the method is missing, the release you have cannot negotiate it, and an upgrade is the next step.

  3. Open the key exchange page

    In the Login dialog, select the site, choose Advanced, then open SSH and select Key exchange. This page appears only for sessions using SCP or SFTP, so confirm the protocol on the site's main screen first. If you do not see Key exchange, change the protocol to SCP or SFTP and reopen the page. The list has no documented default order, so record the current order before you change anything.

  4. Reorder the preference list

    Select the post-quantum method your server supports, such as an ML-KEM or NTRU Prime hybrid entry, and move it to the top of the list using the controls on the page. WinSCP tries methods in list order, so the first match is what it prefers. Methods below the warn below here line trigger a warning box at connection time. Keep the list in a state you can restore, and note which methods your server offers.

  5. Optionally set the KEX raw setting

    If the page cannot express the order you need, set the KEX raw site setting in the Raw Site Settings dialog, or pass it with the /rawsettings parameter after the session URL. The value is a comma-separated list of method names, with the token WARN marking the start of substandard methods. Use only names that appear in your version's documentation, and confirm the value by reopening the site's settings. The GSSAPI-authenticated methods follow a fixed order that the list does not control.

  6. Reconnect and confirm the negotiated method

    Save the site, then connect again. Check the log output to see which key exchange method was negotiated, and confirm it matches the top of your list. If logging is off, enable it on the Logging page of Preferences or with the /log parameter, and keep the default Normal log level unless you need more detail. A successful connection without the warning box confirms the change took effect.

How the fix differs for saved sessions, scripts and shared installs

A saved site stores its own settings, so a change applies only to that site and not to other sessions. You open the site from the Login dialog, go to Advanced Site Settings, and set the key exchange order on the Key exchange page under SSH. The Key exchange page appears only for SCP or SFTP sessions, so check the protocol first. The setting persists in the saved site, which means it survives restarts but does not carry to a new site you create.

  • Scope: only the selected site changes, so duplicate the site if other servers need the same order.
  • Location: the Key exchange page is a subpage of SSH in Advanced Site Settings.
  • Protocol limit: the page is shown only for SCP or SFTP, not for other protocols.
  • Defaults: the sources give no default order for the list, so record the order you set before you change it.
  • Verification: use the logging described on the logging page to confirm the algorithm that was actually negotiated.

After you change a saved site, reconnect and confirm the negotiated method in the log before you assume the change took effect.

How to confirm the WinSCP key exchange warning is resolved

Once you have changed the key exchange preference list, confirm the fix by reconnecting to the same site and watching for the warning box. The warning appears when the first key exchange method WinSCP finds falls below the warn below here line, so a connection with no warning box means the top of your list is now an acceptable method for that server. Do not stop at a single successful login, because a session that connects without the box may still be using a method the server had already accepted. Reconnect to the site, watch the moment the connection is made, and note whether the warning box appears. If it still appears, return to the Key exchange page under the SSH settings in Advanced Site Settings and check that the post-quantum method sits above the WARN token in the list.

Next, confirm which WinSCP build you are running, because the list of available methods depends on the version. Open Help and then About in the main window, or Tools and then About from the Login dialog, and compare the version with the WinSCP release history. The release notes say the ML-KEM method was added in the 6.4.2 beta and that the SSH core moved to newer PuTTY snapshots in later releases, so an older build may not offer the method you placed at the top of the list. To see the algorithms this build supports, run the /info command-line switch, which lists the SSH and TLS/SSL algorithms. Look for the sntrup761x25519-sha512, mlkem768x25519-sha256 and mlkem1024nistp384-sha384 entries in the key exchange section. If the method you expected is missing, upgrade WinSCP before you change any more settings.

Finally, review the session log to see which key exchange method was actually negotiated. Logging is enabled on the Logging page of Preferences or with the /log parameter, and the default log level is Normal. Open the log file after a connection and search for the key exchange entries, then confirm that the method named there matches the post-quantum method you set. On later connections, watch for the same warning box after server or client changes, because a server that drops the post-quantum method or a WinSCP upgrade that changes the default order can bring the warning back. If you need more detail when troubleshooting, raise the log level with /loglevel, and keep in mind that the logs can contain host and session details that should be handled accordingly.

What can break when you change WinSCP key exchange settings

Changing the WinSCP key exchange preference list can alter which method a session negotiates, and some setups fix that order or depend on it. The cards below cover the cases most likely to break a connection or an automated job, so check each one before you save a change to a site.

Older WinSCP versions

Methods such as ML-KEM appeared only in newer releases. WinSCP 6.0 added NTRU Prime support, and 6.4.2 added ML-KEM, so a preference list that names a method your build does not know will not help that session. Run /info from the command line or check Help then About to see the algorithms your specific version supports before you rely on a method name. Upgrading the client is often the step that makes a new setting take effect.

WinSCP version history

Scripts pinned to an older preference list

Session settings saved with an older preference order, or set through raw settings in a script, keep that order until someone edits them. A site that was configured years ago may still prefer a method the server has since dropped. Review saved sites and any /rawsettings or scripting -rawsettings arguments in your jobs, since a change to the GUI does not update them.

WinSCP raw settings

Automation that depends on one key exchange

Scheduled transfers and partner integrations often assume a particular method and fail without warning when the negotiated method changes after an upgrade. Before you change a preference list for a shared site, test the exact job against a copy of the server and confirm the negotiated method in the session log. Record the change so the next person who edits the job knows what it depends on.

WinSCP logging

GSSAPI sessions with a fixed order

For GSSAPI-authenticated key exchange, WinSCP uses a fixed preference order that the preference list does not control. Editing the list will not change how those sessions negotiate, so a change you expect to fix one site may have no effect on a Kerberos-based login. Confirm which authentication method a site uses before you troubleshoot its key exchange.

WinSCP Key exchange page

Group 1 disabled in new installations

The Group 1 Diffie-Hellman method is not used by default in new WinSCP installations. A server that offers only Group 1 will fail to negotiate until you add it to the list, and that change weakens the session because Group 1 is a substandard method. Add it only for a server you cannot upgrade, and place it after the WARN token so WinSCP warns when it is used.

WinSCP raw settings

When to get help with WinSCP key exchange settings

Escalate to your platform or security team when the fix in WinSCP cannot be made on the machine in front of you. The most common case is an outdated WinSCP build. The sources list 6.4.2 beta as the first release with ML-KEM, and 6.7.1 (2026-11-11) as the latest released version as of 2026-12-04, so confirm your installed version under Help, then About in the main window, or Tools, then About in the Login dialog. If you cannot install a current release because of software approval rules, or the Key exchange page does not show the methods you expect, ask the team that manages desktop software to upgrade WinSCP before you change any settings.

Escalate as well when the server belongs to someone else. You can reorder the preference list on the Key exchange page and read the /info output, but you cannot change which methods the server offers. If an SFTP provider or partner controls that server, send them the warning text, the WinSCP version and the output of /info and ask them what key exchange methods they support and whether they plan to offer a post-quantum method. Do not assume the server will change because your client did.

Escalate when many hosts, users or scheduled jobs are affected. Changes made through the GUI are per site, and jobs that call WinSCP through scripts or the /rawsettings parameter need the same settings applied consistently. A regulated environment will also need dated records of the version deployed, the settings used and the logs that show the negotiated method. Ask your security or compliance lead what evidence they require, and keep your logs from /log with the default Normal level or a higher level if they ask for more detail.

Questions people ask about the WinSCP key exchange warning

Is the WinSCP connection still encrypted when the key exchange warning appears?

Yes. The warning means WinSCP found that the first key exchange method it would use sits below the "warn below here" line in your preference list, so the connection is still encrypted, but the method chosen may not be one you want. WinSCP shows the warning box when you connect, similar to the one for cipher selection. The warning does not mean traffic is sent in the clear. To see which method was actually negotiated, check the session log, and compare the Key exchange preference order in Advanced Site Settings with the methods your server supports.

Is the WinSCP key exchange warning urgent to fix?

It is not an emergency, but it deserves a planned fix. The warning tells you that the negotiated method ranks below your chosen threshold, which may include methods you have decided are not acceptable. Who acts on it depends on your role: a user with a personal site can reorder the preference list, while a team that moves files for partners or automated jobs should confirm with the server owner which key exchange methods the server offers. The WinSCP key exchange documentation does not set a deadline, so the urgency comes from your own compliance and risk requirements, which you should confirm with your security team.

Should I hide the WinSCP key exchange warning instead of fixing it?

No. Hiding the warning removes the signal without changing what the connection negotiates, so you lose the one prompt that tells you a weaker method was chosen. A better approach is to reorder the Key exchange preference list so a stronger method is tried first, and to confirm the result in the log. The WinSCP key exchange page explains that the list controls which method WinSCP prefers, and the raw setting KEX uses the same order with a WARN token that marks substandard methods. Keep the warning visible so that a later server change does not pass unnoticed.

Why does the WinSCP key exchange warning appear now?

Most likely because the server and WinSCP now differ in which key exchange methods they support and prefer. WinSCP added post-quantum methods over several releases: NTRU Prime support arrived in 6.0 beta (2023-02-08) with PuTTY 0.78, and ML-KEM arrived in 6.4.2 beta (2025-01-27). If your installed version is older, it will not offer the newer methods, and a server that prefers them may fall back to something you have ranked below the warning line. Confirm your version under Help, then About, and check the WinSCP history for what that version added. The exact cause on your server should be confirmed in the log.

What should I do if I cannot change the server's key exchange settings?

Change what WinSCP offers and prefers, since you may not control the server. Open the session in Advanced Site Settings, go to SSH, then Key exchange, and reorder the preference list so the methods the server supports come first. The order you want depends on what the server offers, which you can check by running WinSCP with the /info switch, as the command-line page and SSH algorithms page describe. You can also set the KEX value with the raw site settings dialog or the /rawsettings parameter. If the server offers no method you accept, the server owner must change it, and you should raise that with them.

How do I check which key exchange method WinSCP actually negotiated?

Enable session logging and read the key exchange line in the log. Logging is turned on in the Logging page of Preferences, or with the /log parameter on the command line. The default log level is Normal, and the /loglevel option accepts values from -1 to 2 for Reduced, Normal, Debug 1 and Debug 2, so a higher level records more detail. Search the log for the key exchange entry after connecting, then compare the method named there with the top of your preference list. If the logged method differs from what you expected, the server is probably not offering your first choice.

When should I ask an outside specialist to help with the WinSCP warning?

Ask for help when the fix spans more than your own WinSCP settings. That includes a server you do not control that offers no acceptable method, automated jobs that move files for partners, or a compliance requirement that sets which methods are allowed. DeployOpen plans and implements SSH and file transfer configuration for self-hosted platforms inside client infrastructure, and prepares evidence for compliance assessments, but it does not issue audit reports or certifications. Scope, deliverables and timelines would be agreed in writing before work starts, and a quote would follow from that scope.

How DeployOpen helps with SSH key exchange changes

DeployOpen starts by confirming which WinSCP version and key exchange order your team actually uses, then sets the preference list for each site in writing. The work is scoped as a fixed engagement, with the checks, settings and log review agreed before changes are made.

How we scope

  • We list the WinSCP versions, sites and SFTP or SCP connections in use, and note which servers report the warning.
  • We confirm the installed version with Help then About, and the algorithms it supports with the /info switch.
  • The written scope names the sites, the key exchange preference list to test, and the log evidence to be collected.

How we build

  • We set the key exchange preference list in Advanced Site Settings on the SSH and Key exchange pages for each affected site.
  • Where a site needs it, we apply the KEX value through raw site settings, then check that the WARN token sits where intended.
  • We run test connections with session logging on, at Normal or Debug level, to confirm which method the server accepts.

How we hand over

  • You receive the final key exchange list for each site, with the WinSCP version it was tested against.
  • The handover documents how to read the warning box and the negotiated method in the session log.
  • You also get the steps to repeat the check after each WinSCP upgrade, since the supported methods change between releases.

How we support

  • Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
  • Ongoing support and upgrade checks are available as a retainer, for teams that upgrade WinSCP on a regular cycle.
  • Ask any quote to state the sites covered, the versions tested and whether log review is included.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.