How to Setup SSH Key Based Authentication with Ubuntu Server

Published: 24 May 2024
on channel: WittCode
1,001
18

Learn how to setup SSH key based authentication with an Ubuntu server. We will also go over why SSH key authentication is more secure than password authentication, how to disable password authentication, and managing keys with SSH agents.

Become a Better Developer
📚 https://courses.wittcode.com

My Software
📡 WittCepter - https://chromewebstore.google.com/det...
🪵 ConsoleLog - https://chromewebstore.google.com/det...

Download Code
👨‍💻 https://blog.wittcode.com

⌛ Timestamps
0:00 - Introduction
0:16 - SSH Key Authentication vs Password Authentication
0:52 - Generating SSH Keys with ssh-keygen
2:34 - Publishing SSH Public Keys to Remote Server with ssh-copy-id
3:25 - Verifying Public Key on Server in authorized_keys File
3:51 - Editing Server SSH Config File to Enable SSH Key Authentication
5:00 - Adding Private Key to SSH Agent with ssh-add
5:35 - Testing SSH Connection
6:01 - Outro


Watch video How to Setup SSH Key Based Authentication with Ubuntu Server online without registration, duration hours minute second in high quality. This video was added by user WittCode 24 May 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,001 once and liked it 18 people.