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.
## Support LearnLinuxTV (commission earned):
– Get your own cloud server with Linode ➜
– Support me on Patreon and get early access to new content! ➜
– Check out my latest book, Mastering Ubuntu Server 3rd Edition ➜
– Check out Shells.com to spin up your very own Linux or Windows desktop in the cloud ➜
– Affiliate store for Linux compatible hardware/accessories ➜
– Check out the Tiny Pilot KVM for your Homelab ➜
## Individual Sections:
00:00 – Intro
02:27 – Creating a sample VM
06:09 – Resetting the machine-id
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 ➜
Official blog post for this video (contains the commands used) ➜
## Recommended evergreen videos:
– How to create a bootable flash drive for installing Linux ➜
– Understanding Linux permissions ➜
– OpenSSH Guide ➜
– LVM Deep-dive ➜
– How to better secure OpenSSH ➜
## LearnLinuxTV Links:
– Main site ➜
– Community ➜
## About the host
– Personal blog ➜
– Twitter ➜
## FAQ
– Which distro do I use? ➜
– My recording gear (commissions earned) ➜
#OpenSSH #Linux #HostKeys .
Concluzion: Resetting OpenSSH Host Keys (the easy method) – Linux,Tutorial,Howto,Guide,Learn Linux,LearnLinuxTV,openssh,host keys,ssh key,ssh keys,reset key,ssh reset,host key reset,reset host key,template,image,deployment,devops,deploy image,base image,automation,automate,ssh,secure shell,linux ssh,command line,ssh tutorial,linux tutorial,secure shell tutorial,configure ssh,secure shell explained,ssh keys explained,secure shell (protocol),ssh config,ssh config file ubuntu,how to,command line linux