GithubHelp home page GithubHelp logo

trimble-tech / hardening-dietpi Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 60 KB

Creates more secure security settings for DietPi Linux.

License: GNU General Public License v3.0

Shell 100.00%
dietpi security-hardening

hardening-dietpi's Introduction

Hardening DietPi

This Bash script runs on DietPi systems to provide security tweaks the default settings do not include. The goal is to introduce good network security to users in a simple manner, with sane defaults and options aimed at lightweight systems.

Prerequisites

  1. An installed instance of DietPi Linux.
  2. If you decide to harden SSH (the option is given at runtime), you must have SSH keys setup on the server. Check out my script SSH-key-builder if you need help with that (https://github.com/Trimble-tech/SSH-Key-Builder).

Usage

Download this script to your local system:.
  • Most may prefer to download to a laptop or desktop, then move it over with a tool like SCP:
    1. If you are using Dropbear (the default) SSH server, you need to install openssh-client for SCP to work (sudo apt install openssh-client). This includes an SCP binary Dropbear doesn't ship. If you use OpenSSH as the server, SCP is included.
    2. Copy the script with SCP using: scp Hardening-Dietpi.sh dietpi@your-server-IP-address:/home/dietpi/
Make the script executable:
  • Using chmod can mark the script file executable: chmod +x Hardening-Dietpi.sh
Execute the script:
  • ./Hardening-Dietpi.sh

License

Hardening DietPi is licensed by Chris Trimble under the GPL v3 Open Source license (2023). Refer to file "LICENSE" for more information.

hardening-dietpi's People

Contributors

trimble-tech avatar

Watchers

 avatar

hardening-dietpi's Issues

SSH settings only support OpenSSH

At the moment, I don't have Dropbear support implemented in this script. I'll be working on it; in the meantime I recommend using OpenSSH if SSH hardening is a must. This can be changed with:
sudo dietpi-software

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.