$ ssh-keygen -t ed25519 -f ~/.ssh/name_of_key -C "your new hetzner box"
ssh-keygen -t ed25519 -f ~/.ssh/name_of_key -C "your new hetzner box"
ssh-keygen -t ed25519 -f ~/.ssh/name_of_key -C "your new hetzner box"
Host someNameOfYourBox HostName <your-vps-ip> User root IdentityFile ~/.ssh/name_of_key
Host someNameOfYourBox HostName <your-vps-ip> User root IdentityFile ~/.ssh/name_of_key
Host someNameOfYourBox HostName <your-vps-ip> User root IdentityFile ~/.ssh/name_of_key
-weight: 500;">apt -weight: 500;">install fail2ban
-weight: 500;">apt -weight: 500;">install fail2ban
-weight: 500;">apt -weight: 500;">install fail2ban
Status for the jail: sshd
|- Filter
| |- Currently failed: 1
| |- Total failed: 3487
| `- Journal matches: _SYSTEMD_UNIT=sshd.-weight: 500;">service + _COMM=sshd
`- Actions |- Currently banned: 0 |- Total banned: 164 `- Banned IP list:
Status for the jail: sshd
|- Filter
| |- Currently failed: 1
| |- Total failed: 3487
| `- Journal matches: _SYSTEMD_UNIT=sshd.-weight: 500;">service + _COMM=sshd
`- Actions |- Currently banned: 0 |- Total banned: 164 `- Banned IP list:
Status for the jail: sshd
|- Filter
| |- Currently failed: 1
| |- Total failed: 3487
| `- Journal matches: _SYSTEMD_UNIT=sshd.-weight: 500;">service + _COMM=sshd
`- Actions |- Currently banned: 0 |- Total banned: 164 `- Banned IP list:
graph LR User -->|":443 HTTPS"| Cloudflare Cloudflare -->|":443 HTTPS"| nginx nginx -->|":4000 HTTP"| Phoenix nginx -->|":80 HTTP redirect"| Cloudflare
graph LR User -->|":443 HTTPS"| Cloudflare Cloudflare -->|":443 HTTPS"| nginx nginx -->|":4000 HTTP"| Phoenix nginx -->|":80 HTTP redirect"| Cloudflare
graph LR User -->|":443 HTTPS"| Cloudflare Cloudflare -->|":443 HTTPS"| nginx nginx -->|":4000 HTTP"| Phoenix nginx -->|":80 HTTP redirect"| Cloudflare
ufw allow 22 # SSH — do this FIRST or you'll lock yourself out
ufw allow 80 # HTTP — needed for Certbot's verification step
ufw allow 443 # HTTPS — your app's public port
ufw -weight: 500;">enable
ufw -weight: 500;">status # confirm rules are active
ufw allow 22 # SSH — do this FIRST or you'll lock yourself out
ufw allow 80 # HTTP — needed for Certbot's verification step
ufw allow 443 # HTTPS — your app's public port
ufw -weight: 500;">enable
ufw -weight: 500;">status # confirm rules are active
ufw allow 22 # SSH — do this FIRST or you'll lock yourself out
ufw allow 80 # HTTP — needed for Certbot's verification step
ufw allow 443 # HTTPS — your app's public port
ufw -weight: 500;">enable
ufw -weight: 500;">status # confirm rules are active