curl -fL 'https://www.helper.sh/optimize_centos7_ssh.sh' -o './optimize_centos7_ssh.sh' This command downloads the bundled file only; it does not run it. Inspect the saved source and compare its version before deciding whether to execute it.
System maintenance
Designed for legacy CentOS 7 hosts where SSH login is slow because the daemon waits on reverse DNS lookup, GSSAPI negotiation, or IPv6 fallback. The script backs up sshd_config, enforces the recommended settings, validates the syntax, and then restarts sshd.
Compare a saved file with the exact bytes bundled in this page’s build. The file stays in this tab; this tool does not upload or persist it. Maximum 2 MiB.
Expected SHA-25683286133883b50a41d5a144397e9d4d380e14f8a0e3bf25be90348b92d678c53
Bundled byte count: 1589
Save checksum fileSave the script and checksum in the same directory. On Linux with GNU Coreutils, the command below checks the saved bytes only; it does not run the script. Keep the original filename for this command.
sha256sum --check './optimize_centos7_ssh.sh.sha256' No comparison yet.
Selected file SHA-256
The checksum and script come from the same site, not an independent signature. A match does not prove safety, authenticity of upstream dependencies, or suitability for your host. Mutable remote dependencies need separate review.
If sshd -t fails, the script exits but leaves the edited file in place. Keep the current session open, inspect the reported line, and restore the timestamped backup manually if needed. If service restart fails, inspect `sudo journalctl -u sshd -n 100 --no-pager`; do not close the working session.
The CentOS 7 manual archive is served by a mirror. The current OpenBSD manual is upstream reference material and may differ from the version shipped with CentOS 7.
Download, inspect, then verify the version before execution. A hash only identifies these exact bytes; it does not prove safety. Piped commands run remote content immediately, and upstream dependencies can change.
Separate repository failures, SSH access problems and Docker storage pressure before changing an end-of-life host.
Open topicThe usual causes are reverse DNS lookup, GSSAPI auth negotiation, and sometimes IPv6 fallback. Disable those waits before doing deeper SSH troubleshooting.
Open page