Platform

CentOS 7 scripts

Recovery scripts for existing CentOS Linux 7 hosts. CentOS Linux 7 reached end of life on June 30, 2024; use these only for compatibility, recovery, or migration preparation, not as a new baseline.

Updated: 2026-10-29

Platform

Related scripts

Operations helper

docker-data-move.sh

An interactive helper that migrates Docker data-root onto a larger disk with path checks, backups, and verification.

One-line command

curl -fL 'https://www.helper.sh/docker-data-move.sh' -o './docker-data-move.sh'

Network client installer

install_openvpn_client_centos7.sh

CentOS 7 OpenVPN client setup with optional local credentials and DNS hooks. Package installation alone does not establish a tunnel.

One-line command

curl -fL 'https://www.helper.sh/install_openvpn_client_centos7.sh' -o './install_openvpn_client_centos7.sh'

System maintenance

switch-centos7-repo.sh

A CentOS 7 repository switch helper for replacing outdated or unreachable yum mirrors with usable sources.

One-line command

curl -fL 'https://www.helper.sh/switch-centos7-repo.sh' -o './switch-centos7-repo.sh'

System maintenance

optimize_centos7_ssh.sh

A CentOS 7 SSH maintenance script that disables reverse DNS lookup and GSSAPI auth, selects IPv4, validates sshd_config, and restarts sshd.

One-line command

curl -fL 'https://www.helper.sh/optimize_centos7_ssh.sh' -o './optimize_centos7_ssh.sh'

Security hardening

centos_disable_password_ssh.sh

A CentOS SSH hardening script that checks for a non-empty authorized_keys file, disables password login, keeps public key auth enabled, validates sshd_config, and reloads sshd.

One-line command

curl -fL 'https://www.helper.sh/centos_disable_password_ssh.sh' -o './centos_disable_password_ssh.sh'

Developer utility

tree-to-file.sh

Exports the current directory to tree.txt; may install tree or use a fallback with different filters. Review overwrite, hidden-name and incomplete-output risks first.

One-line command

curl -fL 'https://www.helper.sh/tree-to-file.sh' -o './tree-to-file.sh'

Scope

yum recoveryMirror switchingSSH hardeningOpenVPN client accessLegacy maintenance

CentOS Linux 7 ended support on June 30, 2024. Plan a migration because routine updates are no longer provided.

These scripts may help recover an existing host or prepare a migration. Limit exposure and review backup and migration plans before continued operation.

Official references