Server Setup

How to Setup Your New Linux Server

Update System # Debian apt update # Fedora dnf update Install Most Used Tools # Debain apt install -y neofetch htop tree ncdu ranger zsh vim neovim git curl wget net-tools # Fedora dnf install -y neofetch htop tree ncdu ranger zsh vim neovim git curl wget util-linux-user Create Sudo User # Debian adduser aimerneige usermod -aG sudo aimerneige # Fedora useradd -G wheel aimerneige passwd aimerneige Test Root Privileges su - aimerneige sudo cat /etc/shadow Setup SSH Public Key # run this on your local machine ssh-copy-id aimerneige@server Test if You Can Connect to Server ssh aimerneige@server Disable Root and Password Login sudo vim /etc/ssh/sshd_config Set PermitRootLogin as no To disable root login Set PasswordAuthentication ad no To disable password login Skip Password for Sudo sudo visudo Add this on the end of file:...

May 17, 2022 · Aimer Neige