YouTube doesn't want you know this subscribers secret
Get Free YouTube Subscribers, Views and Likes

Resetting OpenSSH Host Keys (the easy method)

Follow
Learn Linux TV

When creating a deployment image or template for distributing Linux to devices or servers, it's a good idea to make sure that you reset the host keys for SSH. In this video, I'll show you an easy method I found for automating this.

Brand LPI Linux Essentials Course Available
Check out the new course on Udemy! ➜ https://learnlinux.link/lpicourse
➜ https://learnlinux.link/lpicourse

Check out the Linux Shop
In the official shop, you'll find Shirts, hats, stickers, bags and more!
https://merch.learnlinux.tv

5% discount on LPI exam vouchers
After you finish Jay's new course, get 5% off an LPI exam voucher here:
➜ https://learnlinux.link/lpivoucher

Become a Patron
Show your support for Learn Linux TV on Patreon and get access to exclusive perks!
➜ https://learnlinux.link/patron

Become a Channel Member
Show your support for Learn Linux TV here on YouTube and get access to exclusive perks!
➜ https://learnlinux.link/member

Mastering Ubuntu Server: 4th Edition
Jay's latest book covers everything you need to know in order to master Ubuntu Server. It's available here:
https://ubuntuserverbook.com

Linux Gear and Kits
Check out Jay's choice of hardware products, audio/video equipment, and more.
➜ https://learnlinux.link/amazon

Grab an awesome Pipowered KVM
Support Learn Linux TV and grab yourself a TinyPilot KVM here:
➜ https://learnlinux.link/tinypilot

Note: Royalties and/or commission is earned from each of the above links

Time Codes
00:00 Intro
02:27 Creating a sample VM
06:09 Resetting the machineid
07:45 Demonstrating the issue with host keys
13:27 Adding a systemd unit to clear the SSH host keys
19:20 Creating a Proxmox template with the systemd unit installed and enabled

Relevant links
Systemd unit file used in this video ➜ https://learnlinux.link/sshreset
Official blog post for this video (contains the commands used) ➜ https://www.learnlinux.tv/?p=1665'>https://www.learnlinux.tv/?p=1665

Full Courses from Learn Linux TV
• Linux Essentials Certification Workshop ➜ https://learnlinux.link/lpicourse
• Linux Crash Course series ➜ https://linux.video/cc
• Learn how to use tmux ➜ https://linux.video/tmux
• Learn how to use vim ➜ https://linux.video/vim
• Bash Scripting Series ➜ https://linux.video/bash
• Proxmox VE Cluster Full Course ➜ https://linux.video/pve
• Learn Ansible ➜ https://linux.video/ansible

Linuxrelated Podcasts
• Enterprise Linux Security ➜ https://enterpriselinuxsecurity.show
• The Homelab Show ➜ https://thehomelab.show

Learn Linux TV on the Web
• Main site ➜ https://www.learnlinux.tv
• Community ➜ https://community.learnlinux.tv
• Enterprise Linux Security Podcast ➜ https://enterpriselinuxsecurity.show
• The Homelab Show Podcast ➜ https://thehomelab.show
• Content Ethics ➜ https://www.learnlinux.tv/contentethics
• Request Assistance ➜ https://www.learnlinux.tv/requestass...

Disclaimer
Learn Linux TV provides technical content that will hopefully be helpful to you and teach you something new. However, this content is provided without any warranty (expressed or implied). Learn Linux TV is not responsible for any damages that may arise from any use of this content. The person viewing Learn Linux TV's content is expected to follow their best judgement and to make their best decisions while working with any related technology. Always make sure you have written permission before working with any infrastructure. Also, be sure that you're compliant with all company rules, change control procedures, and local laws.

#OpenSSH #Linux #HostKeys

posted by Pizarrowiek