In this video, CJ shows you how to configure and lock-down a Virtual Private Server running Ubuntu 22.04. With this base VPS setup, you can begin hosting your own apps and services. This is the first part in a series on self hosting.
00:00 Intro
00:59 The What and Why of Virtual Private Servers
03:22 Connect to your VPS with SSH
05:14 Update package lists and Upgrade packages
09:16 Change root password
09:56 Create non-root user
13:08 Login with SSH Key
15:19 Disable Password Login
17:36 Disable root login
18:25 Network and Firewall Policy
19:11 Closed unused ports
20:15 Change default SSH port
21:31 Restrict port access to a specific IP
22:29 Enable and configure automatic updates
24:38 Thanks!
------------------------------------------------------------------------------
Listen to Syntax episode 615 - syntax.fm/show/615/where-should-you-host-your-app-hosting-providers-compared
Watch Syntax episode 730 - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-nCWznQ0HY9c.html
Listen to Syntax episode 730 - syntax.fm/show/730/own-your-own-paas
Github - generate an SSH key - docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent
XKCD 149 - xkcd.com/149/
unattended-upgrades reference - github.com/mvo5/unattended-upgrades?tab=readme-ov-file#supported-options-reference
------------------------------------------------------------------------------
Terms and Topics Covered:
Terminal Emulator - en.wikipedia.org/wiki/Terminal_emulator
SSH - Secure Shell - en.wikipedia.org/wiki/Secure_Shell
VPS - Virtual Private Server - en.wikipedia.org/wiki/Virtual_private_server
Brute Force Attack - en.wikipedia.org/wiki/Brute-force_attack
Exploit - en.wikipedia.org/wiki/Exploit_(computer_security)
Vulnerability - en.wikipedia.org/wiki/Vulnerability_(computing)
Self Hosting - en.wikipedia.org/wiki/Self-hosting_(web_services)
Media Server - en.wikipedia.org/wiki/Media_server
PaaS - Platform as a service - en.wikipedia.org/wiki/Platform_as_a_service
Ubuntu - en.wikipedia.org/wiki/Ubuntu
Debian - en.wikipedia.org/wiki/Debian
Principle of least privilege - en.wikipedia.org/wiki/Principle_of_least_privilege
Superuser - en.wikipedia.org/wiki/Superuser
sudo - en.wikipedia.org/wiki/Sudo
Public-key cryptography - en.wikipedia.org/wiki/Public-key_cryptography
gnu Nano - en.wikipedia.org/wiki/GNU_nano
port Computer Networking - en.wikipedia.org/wiki/Port_(computer_networking)
Firewall - en.wikipedia.org/wiki/Firewall_(computing)
------------------------------------------------------------------------------
Self Host-able Services Mentioned:
Awesome Selfhosted - github.com/awesome-selfhosted/awesome-selfhosted
Media Servers
Plex - www.plex.tv/
Jellyfin - jellyfin.org/
Emby - emby.media/
File Sharing
Nextcloud - nextcloud.com/
Password Managers
Bitwarden - bitwarden.com/blog/host-your-own-open-source-password-manager/
Passbolt - www.passbolt.com/self-hosted-password-manager
Error Tracking / Monitoring
Sentry - develop.sentry.dev/self-hosted/
------------------------------------------------------------------------------
Self Host-able PaaS Mentioned:
piku - github.com/piku/piku
dokku - dokku.com/
kubero - github.com/kubero-dev/kubero
caprover - caprover.com/
coolify - coolify.io/
------------------------------------------------------------------------------
Paas - Platform as a Service Mentioned:
Vercel - vercel.com/
Netlify - www.netlify.com/
Heroku - www.heroku.com/
fly.io - fly.io/
Render - render.com/
Railway - railway.app/
------------------------------------------------------------------------------
Hosted Database Providers Mentioned:
AWS RDS - aws.amazon.com/rds/
PlanetScale - planetscale.com/
Neon - neon.tech/
------------------------------------------------------------------------------
Hit us up on Socials!
www.syntax.fm/links
Brought to you by Sentry - Use code "tastytreats" to get 2 months free - sentry.io/syntax
#vps #ubuntu #selfhosted #guide
21 мар 2024