---
title: "Security and hardening: 32 guides | StreetHosting"
description: "SSH, firewall, fail2ban, permissions and protecting administrative access. Browse the 32 StreetHosting guides on this subject."
url: "https://streethosting.com.br/en/guides/topics/security"
type: "page"
language: "en-US"
---

# Security and hardening

SSH, firewall, fail2ban, permissions and protecting administrative access.

32 guides across 4 categories

Search guides

/

All32 Minecraft5 VPS16 Discord Bots3 Infrastructure8

Filters and sorting

32 guides

[Minecraft Beginner Best Minecraft host in Brazil: how to choose safely A good host is not just a low price: it is predictable latency, a CPU that survives tick spikes, reliable backups, and support that speaks your language when the server goes down on a Friday night. 6 min Read guide](https://streethosting.com.br/en/guides/minecraft/best-minecraft-host-brazil) [Infrastructure Intermediate What is a WAF and when to use one on sites and APIs A WAF inspects the content of every request and blocks injections, XSS and exploitation of known vulnerabilities. See the deployment models, how to install ModSecurity with the OWASP CRS on Nginx, and how to tune it without breaking your site. 11 min Read guide](https://streethosting.com.br/en/guides/infrastructure/what-is-a-waf) [Infrastructure Intermediate Protect a web application from attacks: defense in layers No single tool protects a web application on its own. This guide organizes the defenses in layers, from the network port to the log, and shows what to configure first on a VPS running Nginx. 10 min Read guide](https://streethosting.com.br/en/guides/infrastructure/protect-web-application-from-attacks) [Infrastructure Intermediate TCP vs UDP: which protocol to use on each server TCP guarantees everything arrives, and in the right order. UDP delivers what it can without waiting for anyone. Understanding that trade explains why games and voice use UDP, why APIs use TCP and why opening lots of ports in the firewall does not work. 9 min Read guide](https://streethosting.com.br/en/guides/infrastructure/tcp-vs-udp) [VPS Intermediate Automatic security updates on Ubuntu Server Ubuntu already knows how to install security fixes without anyone typing apt upgrade. This guide shows how to turn it on, limit what gets in, schedule the reboot and check that the routine is actually running. 10 min Read guide](https://streethosting.com.br/en/guides/vps/ubuntu-automatic-security-updates) [VPS Beginner Set up an SSH key on Windows to access your VPS Windows already ships the OpenSSH client, so you can generate and use keys without installing anything. Here is the step by step in PowerShell, the most common permission errors and the path for anyone who prefers PuTTY. 9 min Read guide](https://streethosting.com.br/en/guides/vps/set-up-ssh-key-windows) [VPS Beginner What is taking up disk space on your VPS: how to find and free it A full disk takes down databases, stalls updates and makes applications fail without a clear error message. Here is how to find the culprit in a few commands and what you can delete without breaking anything. 9 min Read guide](https://streethosting.com.br/en/guides/vps/find-what-uses-disk-space-on-vps) [VPS Intermediate How to install MongoDB on an Ubuntu VPS with authentication Fresh out of the box, MongoDB accepts local connections with no password, and a misconfigured bindIp leaves it wide open to the internet. Here is how to install 8.0 from the official repository, enable authentication and give each application a user that can only reach its own database. 10 min Read guide](https://streethosting.com.br/en/guides/vps/install-mongodb-ubuntu-vps) [VPS Intermediate How to secure RDP on a Windows VPS against attacks Port 3389 open to the internet gets automated login attempts every single day. Here are the layers of protection that actually make a difference. 4 min Read guide](https://streethosting.com.br/en/guides/vps/secure-rdp-windows-vps) [VPS Beginner How to change the Administrator password on a Windows VPS The password generated at install is meant for your first login, not for good. Here is how to change it safely and what to do if you lost access. 4 min Read guide](https://streethosting.com.br/en/guides/vps/change-administrator-password-windows-vps) [VPS Intermediate How to install and configure Redis on an Ubuntu VPS Redis is an in-memory database used as a cache, a queue and a session store. Learn how to install it on Ubuntu, protect it with a password or ACL, cap its RAM with the right eviction policy, choose between RDB and AOF, and connect your application. 10 min Read guide](https://streethosting.com.br/en/guides/vps/install-redis-ubuntu-vps) [VPS Intermediate How to install PostgreSQL on an Ubuntu VPS securely PostgreSQL is the most complete open source relational database and the default for many modern applications. Learn how to install it on an Ubuntu VPS, create a user and database for your application, understand authentication, allow remote access without exposing the port, schedule backups and tune memory. 10 min Read guide](https://streethosting.com.br/en/guides/vps/install-postgresql-ubuntu-vps) [Discord bots Intermediate How to protect your Discord server from raids and spam with a bot Raids can take down a community in minutes with mass joins and spam. See how a bot guards the door with verification, message limits and a lockdown mode for emergencies. 3 min Read guide](https://streethosting.com.br/en/guides/discord-bots/discord-anti-raid-bot) [Discord bots Advanced How to build a web dashboard to manage your Discord bot Configuring a bot through commands wears admins out. A web dashboard with Discord login makes everything visual and accessible, from role settings to automated messages. 3 min Read guide](https://streethosting.com.br/en/guides/discord-bots/discord-bot-web-dashboard) [Infrastructure Intermediate Linux server security checklist: from fresh install to hardened A freshly created server is far too open. This checklist puts the hardening steps in order, turning a default machine into a server that is hard to break into. 3 min Read guide](https://streethosting.com.br/en/guides/infrastructure/linux-server-security-checklist) [Infrastructure Intermediate Network firewall vs. application firewall: what is the difference A network firewall decides which ports and IPs get through. An application firewall understands the content of web requests. They are different layers that together make a solid defense. 3 min Read guide](https://streethosting.com.br/en/guides/infrastructure/network-firewall-vs-application-firewall) [Minecraft Beginner How to change the spawn point on a Minecraft server Spawn is the first thing a player sees. Learn how to set the world spawn, pin a fixed spawn with a plugin and protect the area to make a good first impression. 3 min Read guide](https://streethosting.com.br/en/guides/minecraft/change-spawn-minecraft-server) [Minecraft Intermediate How to set up WorldGuard to protect regions in Minecraft WorldGuard is the classic defense against griefing. With WorldEdit to mark the area, you create protected regions, decide what can and cannot happen, and keep your spawn intact. 3 min Read guide](https://streethosting.com.br/en/guides/minecraft/worldguard-minecraft-setup) [VPS Beginner How to connect to your VPS for the first time via SSH You bought the VPS and received an IP, a user and a password. Now it is time for the first login. Here is how to connect over SSH from any system and what to do in the first few minutes. 3 min Read guide](https://streethosting.com.br/en/guides/vps/connect-to-vps-via-ssh-first-time) [VPS Intermediate How to set up passwordless SSH key login on a VPS Key-based login is safer and easier than a password. You generate a key pair, copy the public key to the server, and log in without typing anything. Here is how, in a few steps. 3 min Read guide](https://streethosting.com.br/en/guides/vps/passwordless-ssh-login-vps) [VPS Intermediate How to set up Fail2Ban on a VPS: SSH, Nginx and repeat offenders Fail2Ban reads your logs, spots the IPs that fail too often and bans them in the firewall. Learn how to set it up on Ubuntu 24.04, where the package defaults change how jails behave, and how to manage bans day to day. 8 min Read guide](https://streethosting.com.br/en/guides/vps/fail2ban-ssh-vps-setup) [VPS Intermediate How to create a sudo user on a Linux VPS Running as root all the time is risky: one wrong command affects everything. The best practice is to create a regular user with sudo and keep root for when you really need it. 3 min Read guide](https://streethosting.com.br/en/guides/vps/create-sudo-user-linux-vps) [VPS Intermediate How to install MariaDB or MySQL on an Ubuntu VPS Almost every application needs a database. See how to install MariaDB or MySQL, run the security script, create a database and user, and allow access without exposing the server. 3 min Read guide](https://streethosting.com.br/en/guides/vps/install-mariadb-mysql-ubuntu-vps) [VPS Advanced How to set up a WireGuard VPN on your VPS for private access Instead of exposing panels and databases to the internet, put everything behind a VPN. WireGuard is lightweight, fast and simple to configure, and it gives you secure private access to your VPS services. 3 min Read guide](https://streethosting.com.br/en/guides/vps/wireguard-vpn-vps)

Show 8 more of 8

## Other topics

[See all 25 topics](https://streethosting.com.br/en/guides/topics)

[Linux administration67](https://streethosting.com.br/en/guides/topics/linux) [Hardware and datacenter62](https://streethosting.com.br/en/guides/topics/hardware) [Network, DNS and domains44](https://streethosting.com.br/en/guides/topics/networking) [Costs, plans and billing42](https://streethosting.com.br/en/guides/topics/costs) [Deploying and running apps38](https://streethosting.com.br/en/guides/topics/deploy) [Minecraft plugins38](https://streethosting.com.br/en/guides/topics/plugins) [Community and game modes36](https://streethosting.com.br/en/guides/topics/community) [Getting started30](https://streethosting.com.br/en/guides/topics/getting-started) [Latency and ping28](https://streethosting.com.br/en/guides/topics/latency) [Monitoring and alerts26](https://streethosting.com.br/en/guides/topics/monitoring) [Other games26](https://streethosting.com.br/en/guides/topics/other-games) [Performance and optimization22](https://streethosting.com.br/en/guides/topics/performance) [Automation and webhooks20](https://streethosting.com.br/en/guides/topics/automation) [Migration19](https://streethosting.com.br/en/guides/topics/migration)

[← All topics](https://streethosting.com.br/en/guides/topics)
