This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# HA VM has dropbear SSH server but it cannot start because there is no authorized_keys | |
# This scripts adds $SSH_KEY via USB config import. | |
# All commands run as root on a Proxmox host and checked with PVE 8.2.4 and HAOS 2024.6.4 | |
# 1. Prepare USB stick image | |
dd if=/dev/zero of=usb-blk.img count=50 bs=4096 | |
losetup -f ./usb-blk.img | |
# losetup created /dev/loop1 | |
parted -s /dev/loop1 mklabel msdos |