No description
Find a file
2026-05-27 19:58:47 +02:00
scripts Remove SSH key command restrictions in authorized_keys 2026-01-28 08:03:34 +01:00
.gitignore init 2026-01-28 07:45:24 +01:00
LICENSE chore: canonicalize LICENSE 2026-05-27 19:58:47 +02:00
README.md docs: restructure README with standard sections 2026-05-27 16:24:57 +02:00

my_sysadmin_scripts

What this is

A collection of system administration scripts for provisioning, configuring, and maintaining infrastructure nodes. These scripts automate repetitive operational tasks such as SSH configuration and server updates, ensuring consistent and idempotent setup across machines.

What this repository contains

  • scripts/ssh_config_kristof.sh — Idempotent SSH client configuration script

    • Creates ~/.ssh/config if it doesn't exist
    • Adds Kristof servers (kristof1kristof7) and OVH hero servers (hero-a through hero-d)
    • Skips any hosts that are already configured
  • scripts/update_install.sh — Ubuntu server bootstrap and hardening script

    • Updates and upgrades system packages
    • Installs mc and curl
    • Configures root SSH access with authorized keys
    • Enables UFW firewall (SSH and HTTPS only)
    • Restarts SSH service

Setup SSH Configuration

Run the setup script directly:

curl -fsSL https://forge.ourworld.tf/geomind_code/sysadmin_scripts_public/raw/branch/main/scripts/ssh_config_kristof.sh | bash

After running, you can SSH into any server:

ssh hero-a-expire-may
ssh hero-b-expire-may
ssh kristof1
# etc.

Server Update and Installation

To update and configure servers, run:

curl -fsSL https://forge.ourworld.tf/geomind_code/sysadmin_scripts_public/raw/branch/main/scripts/update_install.sh | bash

This script handles server updates and dependencies installation. It is designed for Ubuntu and must be run as root (will auto-escalate via sudo if needed).

Role in the stack

These scripts provide operational tooling for the Mycelium infrastructure, simplifying node onboarding, SSH access management, and baseline security configuration across the deployment fleet.

Relation to ThreeFold

This technology is used within the ThreeFold ecosystem and was first deployed on the ThreeFold Grid. The component itself is designed as reusable infrastructure technology and should be understood by its technical function first, independent of any specific deployment.

Ownership

This repository is owned and maintained by TF-Tech NV, a Belgian company responsible for the development and maintenance of this technology.

License

This project is licensed under the Apache License 2.0 — see the LICENSE file for details.