Self Host 101 - Set up and Secure Your Own Server
Syntax Syntax
354K subscribers
24,810 views
0

 Published On Mar 21, 2024

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 - https://syntax.fm/show/615/where-shou...

Watch Syntax episode 730 -    • Host your own Vercel  
Listen to Syntax episode 730 - https://syntax.fm/show/730/own-your-o...

Github - generate an SSH key - https://docs.github.com/en/authentica...

XKCD 149 - https://xkcd.com/149/

unattended-upgrades reference - https://github.com/mvo5/unattended-up...

------------------------------------------------------------------------------

Terms and Topics Covered:

Terminal Emulator - https://en.wikipedia.org/wiki/Termina...
SSH - Secure Shell - https://en.wikipedia.org/wiki/Secure_...
VPS - Virtual Private Server - https://en.wikipedia.org/wiki/Virtual...
Brute Force Attack - https://en.wikipedia.org/wiki/Brute-f...
Exploit - https://en.wikipedia.org/wiki/Exploit...)
Vulnerability - https://en.wikipedia.org/wiki/Vulnera...)
Self Hosting - https://en.wikipedia.org/wiki/Self-ho...)
Media Server - https://en.wikipedia.org/wiki/Media_s...
PaaS - Platform as a service - https://en.wikipedia.org/wiki/Platfor...
Ubuntu - https://en.wikipedia.org/wiki/Ubuntu
Debian - https://en.wikipedia.org/wiki/Debian
Principle of least privilege - https://en.wikipedia.org/wiki/Princip...
Superuser - https://en.wikipedia.org/wiki/Superuser
sudo - https://en.wikipedia.org/wiki/Sudo
Public-key cryptography - https://en.wikipedia.org/wiki/Public-...
gnu Nano - https://en.wikipedia.org/wiki/GNU_nano
port Computer Networking - https://en.wikipedia.org/wiki/Port_(c...)
Firewall - https://en.wikipedia.org/wiki/Firewal...)

------------------------------------------------------------------------------

Self Host-able Services Mentioned:

Awesome Selfhosted - https://github.com/awesome-selfhosted...

Media Servers
Plex - https://www.plex.tv/
Jellyfin - https://jellyfin.org/
Emby - https://emby.media/

File Sharing
Nextcloud - https://nextcloud.com/

Password Managers
Bitwarden - https://bitwarden.com/blog/host-your-...
Passbolt - https://www.passbolt.com/self-hosted-...

Error Tracking / Monitoring
Sentry - https://develop.sentry.dev/self-hosted/

------------------------------------------------------------------------------

Self Host-able PaaS Mentioned:

piku - https://github.com/piku/piku
dokku - https://dokku.com/
kubero - https://github.com/kubero-dev/kubero
caprover - https://caprover.com/
coolify - https://coolify.io/

------------------------------------------------------------------------------

Paas - Platform as a Service Mentioned:

Vercel - https://vercel.com/
Netlify - https://www.netlify.com/
Heroku - https://www.heroku.com/
fly.io - https://fly.io/
Render - https://render.com/
Railway - https://railway.app/

------------------------------------------------------------------------------

Hosted Database Providers Mentioned:

AWS RDS - https://aws.amazon.com/rds/
PlanetScale - https://planetscale.com/
Neon - https://neon.tech/

------------------------------------------------------------------------------

Hit us up on Socials!

https://www.syntax.fm/links

Brought to you by Sentry - Use code "tastytreats" to get 2 months free - https://sentry.io/syntax

#vps #ubuntu #selfhosted #guide

show more

Share/Embed