How to Reset SSH Host Keys when Deploying Linux Templates in Proxmox

  Рет қаралды 8,416

Akamai Developer

Akamai Developer

Күн бұрын

In this video, Jay from ‪@LearnLinuxTV‬ will 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.
Chapters:
0:00 Introduction
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
20:11 Conclusion
New to Cloud Computing? Get started here with a $100 credit → www.linode.com/lp/youtube-vie...
Read the doc for more information troubleshooting SSH Key Issues → www.linode.com/docs/guides/ss...
Learn more about Creating an SSH Key Pair → www.linode.com/docs/guides/us...
Subscribe to get notified of new episodes as they come out → kzbin.info?sub_co...
#Linode #Linux #SSHKeys #AlternativeCloud
Product: Linode, SSH Host Keys, Linux; Jay LaCroix;

Пікірлер: 9
@pfos
@pfos 2 жыл бұрын
Cool! - thanx4 the tips =)
@MADhatter_AIM
@MADhatter_AIM 5 ай бұрын
Perfect, thanks !
@OsX86H3AvY
@OsX86H3AvY 10 ай бұрын
so i might have done this incorrectly but i just ran into the same thing just now, though i installed cockpit onto my template also which opened fine of course but thats where i saw the ssh service had failed...i DID truncate the machine-id, removed ssh host keys, and did an ip address flush just prior to making the template, meaning i have no IP address conflicts, but the ssh service then wont start.....so....i just run sudo apt resintall openssh* and that seems to do fix it..had i known i probably would have NOT installed SSH (i LOVE cockpit....on ubuntu...but i'm an open source freeloader so i dont count) and then i would've installed it afterwards.....maybe next time i make a template ill remember that but for now i just added a note in the clone to remind myself how to fix it
@BorgSwarm
@BorgSwarm Ай бұрын
This helped me. I couldn't figure out why the SSH service wasnt responding. I also use Cockpit but hadn't checked it yet.
@mixmastermaverick3336
@mixmastermaverick3336 10 ай бұрын
You got things a bit mixed up I think. You only get an SSH host key warning if you connect to an IP you previously connected to and it presents a different host key. Connecting to two different IPs that have the same host key won't give a warning. This makes sense, as the same host can have multiple IPs.
@ALVERMIC
@ALVERMIC Жыл бұрын
I wanted to have a ssh key ed25519 but without password and I couldn't make it
@encapsulatio
@encapsulatio 2 жыл бұрын
Can you make a guide please on how to install arch packages on debian based distros? and if that is not directly possible then how to correctly convert them to deb packages.
@RazoBeckett.
@RazoBeckett. 2 жыл бұрын
2nd comment
@LA-MJ
@LA-MJ Жыл бұрын
Writing into urandom is naive. AFAIK it does not really work the way one would think it does. There was a discussion regarding it relatively recently. Early boot randomness is a real problem on entropy-starved systems
How to use the ps Command | Linux Command Line Basics
14:45
Akamai Developer
Рет қаралды 34 М.
How to use Multiple SSH Keys | Managing Different SSH Keys on your System
21:29
🍟Best French Fries Homemade #cooking #shorts
00:42
BANKII
Рет қаралды 58 МЛН
1 класс vs 11 класс  (игрушка)
00:30
БЕРТ
Рет қаралды 3,3 МЛН
Её Старший Брат Настоящий Джентельмен ❤️
00:18
Глеб Рандалайнен
Рет қаралды 7 МЛН
How SSH Works
8:54
Mental Outlaw
Рет қаралды 476 М.
Resetting OpenSSH Host Keys (the easy method)
22:53
Learn Linux TV
Рет қаралды 11 М.
Everything You Need to Know About sudo | Linux Essentials Tutorial
23:51
Akamai Developer
Рет қаралды 38 М.
SSH Key Authentication | How to Create SSH Key Pairs
18:46
Akamai Developer
Рет қаралды 105 М.
Virtualize Windows Server 2022 in Proxmox - VLANs, Sysprep, and Template!
13:48
SSH Full Course - EVERYTHING You Need to Know!
1:28:00
Learn Linux TV
Рет қаралды 561 М.
Proxmox LXC - How To Guide - Better Than A VM?
17:01
Jim's Garage
Рет қаралды 49 М.
Automate local DNS with Bind and Terraform
20:56
Christian Lempa
Рет қаралды 53 М.
Купил этот ваш VR.
37:21
Ремонтяш
Рет қаралды 134 М.
Will the battery emit smoke if it rotates rapidly?
0:11
Meaningful Cartoons 183
Рет қаралды 9 МЛН
Урна с айфонами!
0:30
По ту сторону Гугла
Рет қаралды 5 МЛН
Настоящий детектор , который нужен каждому!
0:16
Ender Пересказы
Рет қаралды 222 М.
keren sih #iphone #apple
0:16
Muhammad Arsyad
Рет қаралды 1,5 МЛН