Contents
- Decide by the task, not by the size of the project name
- What's actually running: client and server are two different things
- SFTP: frequent divergence is not the same as impossibility of transfer
- Keys: common algorithm, file format, and authorization restrictions
- Algorithms and post-quantum exchange: compare current builds
- Tunnels, parameters and configurations are not transferred mechanically
- Consumption and performance: what makes sense to actually measure
- Safe migration and tests with the client in use
- Frequently asked questions
Decide by the task, not by the size of the project name
Both OpenSSH and Dropbear provide SSH access, but they target slightly different environments. OpenSSH offers a comprehensive set of client and server tools that administrators commonly use on full operating systems. Dropbear was created as a compact implementation suitable for devices with limited resources. However, this characteristic cannot be used to infer the exact performance of your router or the security of a particular firmware.
It is important to distinguish between the project, its version, the distribution package and the actual build on the device. The manufacturer may disable some features, choose different file paths or add their own management interface. Therefore, the instructions for the generic Dropbear may not correspond to the settings of a specific OpenWrt router, NAS or rescue initramfs. The same principle applies to the modified OpenSSH in the corporate system image.
This article does not present a synthetic speed ranking. Instead, it offers a verification procedure: write down the necessary operations, find out the real implementation, and verify each workflow. This is more practical than installing a larger package for a feature that the device does not lack at all, or, conversely, considering a functional terminal itself as proof of full compatibility.
What's actually running: client and server are two different things
You can use an OpenSSH client from your laptop to connect to the Dropbear server. This does not require the same program on both ends. The connection depends on a common protocol, algorithms, and enabled authentication. Furthermore, the name of the application from which you open the terminal does not necessarily say anything about the server implementation.
# Verze klienta OpenSSH na vašem počítači:
ssh -V
# Podrobná diagnostika vyjednání se serverem:
ssh -vvv spravce@zarizeni.example
# Na zařízení, pokud je příkaz dostupný:
dropbear -V
dropbear -hThe server banner is a useful reference, but not a complete inventory of security patches. Distributions may push patches into the package without changing the upstream version number. Therefore, when managing, also compare the firmware or distribution package version and its security notice. Do not mark a machine as unpatched based on a short banner alone.
If the server command is not in the PATH, it may be managed by the init system or built in differently. Do not install a second SSH server just to check the status. First, use the established management interface of the device and its documentation. Above all, on the router, you need to maintain management availability even after reboot.
SFTP: frequent divergence is not the same as impossibility of transfer
OpenSSH provides both an SFTP client and a server handler that can run internally in sshd. Dropbear can run an external sftp-server, but it does not provide this program itself. Functionality therefore depends on the support in the build, the set path, and the presence of the external handler on the device. The conclusion "Dropbear never knows SFTP" is as inaccurate as the assumption that every router automatically has it.
sftp -vvv spravce@zarizeni.exampleIf login passes but subsystem request fails, check packages and actual server startup. Subsystem sftp internal-sftp from OpenSSH configuration is not a universal Dropbear configuration. Copying sshd_config to a device with a different implementation will not create any subsystem on its own.
For scp transfers, also consider the client's behavior. Newer OpenSSH uses SFTP by default for regular scp transfers; therefore, the presence of an old scp program on the router does not necessarily mean that the current default client will succeed. Consider choosing a compatible legacy mode only for the intended trusted environment and according to the client's documentation. This is not a reason to confuse FTP, SCP, and SFTP.
Keys: common algorithm, file format, and authorization restrictions
The public key for account authorization is a different object than the client or server private key file. Dropbear can work with public keys in the compatible authorized_keys text format, but the supported restriction options are a different set. An unknown option may cause the record to be ignored. Therefore, when migrating, verify each restriction and do not automatically remove it just to make the login work.
Private keys can be stored in different containers. Depending on the specific type and version, you may need to use the dropbearconvert tool or another documented import. Perform the conversion on a trusted machine and verify the fingerprint of the public part before and after the operation. Do not send the private part to an unknown online converter and count on the protection of the created copy and temporary files.
Support for certificates, hardware authenticators, or new key variants must be assessed for the specific end of the connection. It cannot be inferred from Ed25519 support or from the fact that a regular public key was inserted without error. If you need user certificates and a central CA, perform a separate test of their issuance, acceptance, validity, and revocation.
Algorithms and post-quantum exchange: compare current builds
The claim that a lightweight implementation must only use legacy cryptography is incorrect. The current upstream configuration of Dropbear also includes hybrid post-quantum exchange based on ML-KEM and X25519. However, this does not prove that older firmware or manufacturing builds of a particular router have it. Verify the exact result when establishing a connection, not by the marketing label of the device.
# Co umí právě tento klient OpenSSH:
ssh -Q kex
ssh -Q key
# Co se skutečně vyjedná s konkrétním serverem:
ssh -vvv spravce@zarizeni.exampleThe ssh -Q output is for the client. Only the actual connection log will show the selected key exchange, host key, and other parameters. Post-quantum exchange protects a different part than user authentication. A functional hybrid KEX with a regular Ed25519 login key is not the same as a post-quantum signature at login.
If the client rejects an old algorithm, prioritize upgrading the server or firmware. Globally enabling old methods for all hosts can extend the risk far beyond a single device. If transitional compatibility is truly necessary, limit it to a specific host and migration period, and document the reason. First check whether the device supports a more secure option shared by both sides.
Tunnels, parameters and configurations are not transferred mechanically
Both implementations can provide port forwarding, but support depends on build and policy. Knowing the meaning of local and remote listening remains useful, but the specific options may not be identical. For example, a short switch that looks the same may have a different meaning in another program. Always check the help for the program before transferring a command between ssh, dbclient, and dropbear.
OpenSSH uses sshd_config and extensive Match directives, among other things. Dropbear is often configured with startup parameters and, on a particular platform, with its own service manager interface. The /etc/config/dropbear file on an OpenWrt device is an example of a platform layer, not a universal file for all Dropbear installations. Also, modifying parameters on a running process does not ensure that they are preserved across reboots.
For a restricted account, also verify what is to be denied. A functionally enabled command is just a positive test. You need to know if unwanted shell, forwarding, or file access has been added. Changing the implementation may change the meaning or availability of a particular restriction, even if the key itself continues to be accepted.
Consumption and performance: what makes sense to actually measure
Packet size, process resident memory, and CPU during transfer are different metrics. The result will be affected by architecture, build optimization, hardware acceleration, cipher, number of sessions, and storage speed. A smaller binary does not necessarily mean faster encryption, and fast transfer on a laptop does not indicate a router with a different processor.
- Measure the same device, the same network, and the same verified file.
- Separate idle session, connection establishment, and long transmission.
- Record the exact version, negotiated algorithms, and number of concurrent clients.
- Keep the security restrictions and identity verification the same, otherwise you are comparing different traffic.
Don't do an unlimited load test on a production router, which can degrade the routing of the entire network. Often, checking the necessary functions and the normal load is enough to make a selection. If the device is only to provide an emergency terminal, it may not have the same requirements as a server for dozens of SFTP users or a central bastion.
Safe migration and tests with the client in use
When migrating, keep the original working service and authenticated console. Test the new implementation on a separate allowed port so that it does not compete for the same socket. Decide whether to preserve the identity of the server key with a documented procedure or perform a controlled identity change with independent verification of the new fingerprint. Warning clients must not lead to a mass blind deletion of known_hosts.
Test actual procedures from CH-J Tools or another client in use: login, terminal, SFTP, specific permissions, and tunneling as needed. The success of a command-line client is a useful comparison, but does not replace testing the program that administrators will be working with. Do not infer support for CH-J Tools features solely from OpenSSH client switches.
Remove the original service only after verifying the target state and how it will start after a reboot. The selection is successful when the device safely fulfills the required functions, receives available updates, and has a clear management process. The project name itself is not a result of this verification.
Frequently asked questions
Can Dropbear do SFTP?
It can run an external sftp-server if the build supports it and the program is available at the expected path. Dropbear itself does not provide it.
Is Dropbear automatically less secure?
No. Versions, patches, builds, allowed methods, and operational configurations matter. A minor implementation alone does not give a general security verdict.
Can I use sshd_config for Dropbear?
Not a universal configuration. Check the parameters and management layer of the specific platform; OpenSSH directives are not taken mechanically.
Does Dropbear support post-quantum SSH?
The current upstream configuration includes a hybrid ML-KEM exchange. Availability and actual use in the device needs to be verified for its specific build.
Detailed documentation
Dropbear: build options and external SFTP →