Secure SSH Key Login on Ubuntu: No Root, No Password
Lock down your Ubuntu server by enabling SSH key authentication and disabling both root and password logins. In this step-by-step beginner guide, you’ll create a non-root sudo user, generate a key pair, copy your public key to your server, and harden your sshd_config so only key-based logins are permitted. Help me decide what videos to make next 👉 https://ttt.do/future-tutorials (survey link) ⏪ Watch previous (firewall setup): https://youtu.be/68GTL7djIMI 📺 Full Playlist – Build & Secure Your VPS Website: https://www.youtube.com/playlist?list=PL_vyuxE-AO-CuU7E2KfT2bDwVL63v28JZ What You’ll Learn ✅ Add a non-root user with sudo privileges ✅ Generate SSH key pair with ssh-keygen ✅ Copy your public key with ssh-copy-id ✅ Disable root login and password authentication ✅ Update sshd_config for key-only access ✅ Restart SSH and verify your hardened setup ⏱️ Chapters 00:00 Intro & why key-based SSH matters 00:36 Create a non-root sudo user 01:37 Use native SSH client 02:35 Generate SSH key pair 03:36 Copy your public key to the server 04:30 Test key-only SSH login 04:45 Edit /etc/ssh/sshd_config 07:04 Restart SSH service 07:34 Verify root and password logins are disabled Important sshd_config File Changes: PermitRootLogin no PasswordAuthentication nos PermitEmptyPasswords no KbdInteractiveAuthentication no UsePAM no X11Forwarding no AuthenticationMethods publickey AllowUsers tony
Suggested videos

How to Make a Free Blog Website on Blogger.com
Tony Teaches Tech · 13:55

Secure SSH on Ubuntu 24.04: Key-Only Login, No Root, No Lockout
MUKULAH Dev · 6:38

How To Protect Ubuntu With fail2ban
Tony Teaches Tech · 9:43

How to SSH Without a Password (like a boss)
Tony Teaches Tech · 5:30

How to Make a Free Website (10+ options)
Tony Teaches Tech · 4:10

Set Up Passwordless SSH Login in Linux | SSH Key Authentication Guide
Mingtao SUN · 1:36

VPS Tutorial for Beginners: Website Setup on DigitalOcean
Tony Teaches Tech · 7:52

SSH Key Login on Ubuntu: Disable Password Login & Change Port 22 (Step by Step)
webixhost Network Limited · 4:38

Disable Password Authentication and Use SSH Keys on Linux Ubuntu Server | Detailed Tutorial Guide
Dewiride School · 8:29

How to Speed Up a Slow WordPress Site
Tony Teaches Tech · 5:16

How to SSH Without a Password on Linux and Windows
ZacsTech · 8:30

How to Create a Free Website Using GitHub Pages
Tony Teaches Tech · 12:34