Platform

CentOS 7 scripts

Recovery-oriented scripts for legacy CentOS 7 hosts that still need package installs, storage cleanup, and controlled maintenance.

Updated: 2026-04-07

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 -fsSL helper.sh/docker-data-move.sh | sudo bash

Network client installer

install_openvpn_client_centos7.sh

A helper.sh-hosted CentOS 7 OpenVPN client installer that imports the EPEL GPG key, installs OpenVPN, copies local client.conf and login.txt, deploys a DNS helper, and enables openvpn-client@client.

One-line command

curl -fsSL helper.sh/install_openvpn_client_centos7.sh | sudo bash

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 -fsSL -o switch-centos7-repo.sh helper.sh/switch-centos7-repo.sh && sudo bash switch-centos7-repo.sh

System maintenance

optimize_centos7_ssh.sh

A one-shot CentOS 7 SSH tuning script that disables reverse DNS lookup, turns off GSSAPI auth, pins IPv4, validates sshd_config, and restarts sshd safely.

One-line command

curl -fsSL helper.sh/optimize_centos7_ssh.sh | sudo bash

Security hardening

centos_disable_password_ssh.sh

A CentOS SSH hardening script that verifies an existing authorized_keys file, disables password login, keeps public key auth enabled, validates sshd_config, and reloads sshd safely.

One-line command

curl -fsSL helper.sh/centos_disable_password_ssh.sh | sudo bash

Developer utility

tree-to-file.sh

A helper.sh-hosted directory tree exporter that writes the current project structure into tree.txt and falls back cleanly when tree is unavailable.

One-line command

curl -fsSL helper.sh/tree-to-file.sh | sh