Configuracion básica servidor Debian


Actualizar paquetes

sudo apt update sudo apt upgrade -y

Agregar un usuario

sudo adduser rick

Agregar a grupo Sudo

Inicie sesión con el usuario root

apt install sudo sudo usermod -aG sudo rick

Todo en una línea

sudo useradd -m -s /bin/bash rick sudo passwd rick sudo usermod -aG sudo rick

Configurar ip estática

sudo nano /etc/network/interfaces
# This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). source /etc/network/interfaces.d/* # The loopback network interface auto lo iface lo inet loopback # The primary network interface allow-hotplug enp2s0 iface enp2s0 inet static address 192.168.1.254 netmask 255.255.255.0 gateway 192.168.1.1
sudo systemctl restart networking.service

Firewall

sudo apt install ufw sudo ufw allow ssh sudo ufw allow 22 sudo ufw enable

Utilidades

sudo apt install curl wget net-tools