Skip to content

Ph4ntom01/Debian-Secure-Config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Debian Secure Configuration

This script is intended to be used on a fresh Debian 10 installation. His main purpose is to easily secure the OS.

What does the script do ?

  • Restore the sources.list file with the default mirrors
  • Update & upgrade
  • Install sudo
  • Secure SSH
  • Disable IPv6
  • Install UFW firewall
  • Install Unattended Upgrades

How to use it ?

$ su root
# cd /tmp
# wget https://raw.githubusercontent.com/Ph4ntom01/Debian-Secure-Config/main/debian_secure_config.sh
# chmod +x debian_secure_config.sh
# bash debian_secure_config.sh

SSH key

To secure your server, either copy the private key to the remote client by using the script, or follow theses steps :

  • First, make sure you copy you private key (located at /home/[user]/.ssh/[user]) to your client with a FTP software (ex: FileZilla).
  • Second, uncomment and set PasswordAuthentication to no in the /etc/ssh/sshd_config file.
  • Third, remove the private key from the server.

About

Secure your fresh Debian 10 installation.

Topics

Resources

License

Stars

Watchers

Forks

Languages