Contents
- The distribution list is not a test protocol
- Prepare a renewable environment
- First, verify the harmless reading and context
- PTY and terminal have their own set of scenarios
- Don't test SFTP and the editor by just logging in
- Test system operations by specific profiles
- How to publish an honest result
- Frequently asked questions
The distribution list is not a test protocol
The statement "works on Linux" needs to be clarified as to whether it is running a graphical client or connecting to a Linux server. The desktop may require specific libraries and distributed packages, while remote operations depend on an SSH server, shell, and system tools. Therefore, address these two questions separately in the testing matrix.
CH-J practice uses dated system profiles and source bindings of operations. The existence of code for a distribution is not the same as an actual recorded run. This article describes the methodology and experience with such a resolution; it does not report a new successful test of all distributions performed at the time of writing.
Prepare a renewable environment
Use isolated VMs or equivalent test machines with clearly defined image, OS version, SSH server and client. Prepare snapshots and verified rollbacks before mutation scenarios. A container can help for parser tests, but it will not replace every systemd, login, network change or disk operation scenario.
Test accounts and keys must not have production permissions. For each run, record the client build and configuration options used. When reusing a VM, verify that older changes have not remained a hidden success condition. An ideal protocol will allow another administrator to prepare the same initial state.
First, verify the harmless reading and context
uname -s
cat /etc/os-release
command -v sh
whoami
pwdOn Linux, this information will help validate the environment. On other systems, use appropriate detection. Then test for port availability and denial, timeout, verified host identity, and authentication. The negative case of a changed host key must originate in an isolated trust store, not by overwriting the actual administrator trust records.
Distinguish between TCP error, crypto negotiation, and user rejection. Record the actual KEX and accepted authentication method if that is the purpose of the test. A successful terminal after a substitute password login does not demonstrate the functionality of the key you originally intended to test.
PTY and terminal have their own set of scenarios
Try interactive shell, resizing, special keys, UTF-8, copying, and reasonably long output. Not every terminal problem is an SSH transport glitch. Other behavior can be caused by the shell, locale, terminfo, or client rendering. On mobile, the input keyboard and application background have additional limitations.
To reconnect, distinguish between a new SSH session and a return to the server tmux. Client disconnection may not have the same impact on every remote task. The negative scenario is to verify that the application does not mark the interrupted work as finished and that retrying does not cause an unwanted second mutation.
Don't test SFTP and the editor by just logging in
Verify subsystem, list, download, and authorized upload of a harmless file. Compare contents and checksums. Add target name conflict, lack of permissions, nonexistent path, and break. Test symlinks and chroot as per client contract. A working shell does not prove SFTP, and a successful upload is not an automatic activation of the service.
For the editor, add encoding, line breaks, concurrent editing, and write mode. A sudo editor has different permissions and risks than a regular save of your own file. Don't test destructive writes on a real configuration just for the sake of a faster result. You need a controlled copy and the ability to verify the state after a failure.
Test system operations by specific profiles
Ubuntu, Debian, Arch, Rocky, RHEL and Alpine do not all have the same tools or init system. A minimal image may lack an optional command. Check the response to this situation, not just the happy path of a full install. A Dropbear or router profile is also not automatically equivalent to a full OpenSSH server.
In the CH-J Matrix, record the implementation and the dated test separately. For mutations, check the actual result, not just the process return. For example, an account creation test requires subsequent verification of the correct properties and cleanup in the test environment. The entire run should end with a return to a known state without new permissions in production.
How to publish an honest result
- The image, system version, and client build are listed.
- Each operation has PASS, FAIL, not supported, or not performed.
- Automation and actual live running are distinguished.
- The visual inspection is not derived from an HTTP or parser test.
- The regression case has sufficient public data without secrets.
Such a protocol helps explain support and bugs without over-promising. When changing clients, iterate over affected scenarios and necessary regressions. It is not necessary to pass off every small read test as a full distribution certification, nor to skip a new issue just because an older version once passed.
Frequently asked questions
Is connecting via SSH a complete client test?
No. Terminal, SFTP, editor, and system operations have their own scenarios.
Will a container replace every VM?
No. Some system and network scenarios require appropriate isolated environments.
Does it prove to be implemented in real life?
No. A documented test needs a specific environment, date, and result.
Detailed documentation
OpenSSH: client and diagnostics →
OpenSSH: standalone SFTP subsystem →