A project to setup a basic remote linux server VM on Vagrant and configure it to allow secure SSH.
├── scripts
│ └── script.sh
├── .gitignore
├── README.md
└── Vagrantfile
- Provision a Ubuntu 22.04 LTS virtual machine using Vagrant with automatic SSH key deployment.
- Configure SSH daemon to use Ed25519 public key authentication and disable password-based login.
- Disable root login and ensure proper permissions on SSH configuration directories and files.
- Install and enable fail2ban to protect against brute-force SSH attacks.
- Automate the entire setup process through Vagrant provisioning scripts for reproducible server deployment.
Install and configure fail2ban to prevent brute force attacks.
sudo apt update
sudo apt install fail2ban -y
sudo systemctl enable --now fail2ban