How to Reset SSH Host Keys when Deploying Linux Templates in Proxmox
In this video, we’ll go over how to create a new set of SSH host keys for each instance that you create from an image. Resetting SSH host keys, and making sure that each instance that you set up has different host keys, is vital to server security.
0:50 Creating a VM in Proxmox
3:04 Installing Ubuntu Server
4:37 Resetting the Machine ID
6:12 Demonstrating the Wrong Way to go About This
8:27 Connecting to our VMs
8:56 Locating the Host Keys
9:18 What’s in a Host Key File?
10:08 Demonstrating the Right Way to go About This
11:18 Connecting to Our New VMs
11:41 Resetting the Machine ID
11:55 Creating a Template with Unique Host Keys
13:03 What’s In This Code?
15:39 Change File Permissions
15:52 Move the File
16:20 Restart systemd
16:50 Enable regenerate_ssh_host_keys.service
17:20 Checking the Key Before Regeneration
17:44 Reboot the System
17:55 Creating a Template in Proxmox
18:43 Clone the VM
19:10 Check the New Servers Keys
New to Linode? Get started here with a $100 credit!
Read the doc for more information troubleshooting SSH Key Issues.
Learn more about Creating an SSH Key Pair.
Subscribe to get notified of new episodes as they come out.
#Linode #Linux #SSHKeys #AlternativeCloud
Product: Linode, SSH Host Keys, Linux; Jay LaCroix;
How to use the ps Command | Linux Command Line Basics
You might also like…
Windows Privilege Escalation Techniques | Red Team Series 8-13In the eighth video in our series on Red Team Techniques, we will talk about Privilege Escalation Techniques in Windows.
Monitor in Real-Time with OSSEC See What’s Taking Place in Your ServerIn part 6 of Blue Team training, we'll cover Intrusion detection with OSSEC, an open-source, host-based intrusion detection system.
How to Secure WordPress | HackerSploit Linux SecurityIn this video, Alexis from Hackersploit will walk you through some of the steps you should take to secure your WordPress website.
How to Deploy and Secure Your MERN App on LinodeIn this video, @codinginflow will show you how to deploy & secure a NodeJS/React application on a Linode and connect it to a domain.