Understanding KEX Algorithms in sshd_config: Does 'pseudo' Override or Take Effect?

Abstract: Resolve sshd_config errors caused by invalid KexAlgorithms pseudo setting and configure valid modern key exchange algorithms.

Created: 2026-09-26 by

The term 'pseudo' does not exist as a valid KexAlgorithms value or directive in OpenSSH sshd_config. It is likely a confusion with the legacy SSH-1 protocol, which used a "pseudorandom" key exchange method that is now obsolete and disabled by default. Modern SSH configurations should rely on established algorithms like curve25519-sha256 or diffie-hellman-group-exchange-sha256.

Clarifying the Misconception About 'Pseudo'

When administrators encounter the word "pseudo" in the context of SSH Key Exchange (KEX), they are often referring to historical documentation or misinterpreting internal code comments. In the early days of SSH, specifically version 1, the key exchange mechanism was indeed based on pseudorandom number generation techniques to establish shared secrets. However, SSH-1 has been deprecated for nearly two decades due to significant security vulnerabilities, including susceptibility to man-in-the-middle attacks. OpenSSH, the standard implementation for Linux and Unix-like systems, removed support for SSH-1 long ago. Consequently, there is no configuration option named KexAlgorithms pseudo or any variant thereof. If you attempt to set this value in your /etc/ssh/sshd_config, the SSH daemon will fail to start or ignore the invalid entry, logging an error indicating that the specified algorithm is unknown. This behavior confirms that 'pseudo' is not a recognized token in the modern cryptographic suite. It is crucial to distinguish between the concept of pseudorandomness, which is fundamental to all secure cryptography, and actual algorithm names. All modern key exchange methods use pseudorandom functions internally, but they are identified by specific IANA-standardized strings. Administrators must configure these exact strings to ensure compatibility and security.

Valid KexAlgorithms Configurations

To properly configure key exchange algorithms, you must use the official list provided by the OpenSSH project. These algorithms determine how the client and server negotiate a shared secret before encrypting the session. The most common and recommended algorithms include:
  • curve25519-sha256: A modern elliptic curve Diffie-Hellman exchange that offers high performance and strong security.
  • [email protected]: An older identifier for the same curve25519 implementation, sometimes seen in older clients.
  • diffie-hellman-group-exchange-sha256: Allows the server to generate a custom-sized DH group, providing flexibility and strength.
  • diffie-hellman-group14-sha256: A widely supported standard DH exchange using 2048-bit groups.
You can view the full list of supported algorithms on your specific system by running ssh -Q kex as root. This command outputs every key exchange method currently compiled into your OpenSSH binary. Using this output ensures that your configuration matches what the software actually supports. When editing sshd_config, you specify these algorithms in the KexAlgorithms directive. For example:
KexAlgorithms curve25519-sha256,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha256
This configuration prioritizes the fastest and most secure options first. The server will propose these in order until the client accepts one. If a client only supports older algorithms, the connection may fail if those are not included in the list. Always test changes with sshd -t before restarting the service to avoid locking yourself out.

Security Implications of Algorithm Selection

Choosing the right KEX algorithms directly impacts your server's resistance to cryptanalytic attacks. Weak algorithms like diffie-hellman-group1-sha1 rely on small key sizes and hash functions that are no longer considered secure against determined attackers. Disabling these weak options forces connections to use stronger cryptographic primitives. Furthermore, ensuring that your server supports curve25519 variants helps future-proof your infrastructure. As computational power increases, older DH groups become vulnerable to brute-force attacks via pre-computation tables. Elliptic curve methods provide equivalent security with much smaller key sizes, making them more efficient and harder to break. For users managing large fleets of servers, consistent algorithm configuration is vital. You can automate this using tools like Ansible or Puppet to enforce strict KEX policies across your environment. Regular audits of sshd_config help identify any lingering references to deprecated protocols or algorithms that might have been accidentally re-enabled.

Troubleshooting Connection Failures

If you experience connection failures after modifying KexAlgorithms, the issue is almost always a mismatch between server and client capabilities. Clients such as older versions of PuTTY, OpenSSH on legacy operating systems, or embedded IoT devices may not support modern algorithms like curve25519. To diagnose this, enable verbose logging on the client side using ssh -v user@host. Look for lines starting with kex_exchange_identification or No matching key exchange method found. This message explicitly states that the server and client could not agree on a common algorithm. In such cases, you must either update the client software to support modern standards or add legacy algorithms to your server's KexAlgorithms list. However, adding legacy algorithms reduces overall security. It is generally better to upgrade clients than to weaken server security. Remember that changing configuration requires reloading the SSH service, typically via systemctl reload sshd. For more information on securing SSH keys, see Understanding Different Hash Values in SSH-Keygen SHA256. Additionally, understanding how to restrict access based on groups can complement your cryptographic hardening efforts, as detailed in Restricting SSH Access for wheel Group Users in Red Hat 9 using PAM's pam_access.so - Not Denying Access.

Frequently Asked Questions

Why did my SSH config reject 'pseudo'?

The OpenSSH daemon does not recognize 'pseudo' as a valid key exchange algorithm name. It is not a real directive or value in sshd_config. Using it causes a syntax error or an invalid parameter warning because the software expects standardized algorithm identifiers.

Is SSH-1 still supported in modern Linux distributions?

No, SSH-1 is completely unsupported in current versions of OpenSSH. It was removed due to critical security flaws that allow attackers to intercept communications. Any reference to SSH-1 features is outdated and should be avoided in new configurations.

How do I check which KEX algorithms my server supports?

Run the command ssh -Q kex as the root user. This lists all key exchange methods compiled into the installed OpenSSH binary. You can then select from this list to populate your KexAlgorithms configuration line.

What happens if I disable all modern KEX algorithms?

Modern clients will fail to connect because they require strong cryptographic exchanges. Only very old, insecure clients might succeed if you force them to use deprecated methods. This creates a significant security risk and is strongly discouraged for production environments.

Can I mix different types of KEX algorithms in one config?

Yes, you can list multiple algorithms separated by commas. The server will try them in the order listed, preferring the first ones. This allows you to support both modern and slightly older clients while prioritizing security.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More