Sys Admin

description: Resources about Sys Admin - Messy, needs to be split

lang: ENG

Apps

Resources


Backup

  # a is for archive, v for verbose, h for human and p for partial
  rsync -avhp src/ dest/

Resources

Block connections on 22 port

Use the tool endlessh


FileSystem

Create swap memory

sudo dd if=/dev/zero of=/swapfile bs=1024 count=1000000
sudo mkswap /swapfile
sudo chmod 600 /swapfile
sudo swapon /swapfile
# FS          mountpoint  type  option(s) dump pass
/path/to/swap    none     swap      sw      0    0

Resources


Firewall

Resources


Nginx

Resources


SSH

Chroot jail

Definition

Use chroot jail wit SSH. It allows to isolate a user through ssh in a specific directory with limited commands.

Resources


VPN

Resources


Sudo & su

Su