Files
cloudhost/seediso/debian13/user-data
T
GuofangandClaude Sonnet 5.5 2fd82ab2c9 Inject the current user's SSH public key into the Debian seed ISO
user-data is now a template with an @SSH_PUBKEY@ placeholder that
build-seed.sh fills in from SSH_PUBKEY_FILE, ~/.ssh/id_*.pub or ssh-agent.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-10 19:17:04 +08:00

46 lines
1.0 KiB
Plaintext

#cloud-config
preserve_hostname: false
manage_etc_hosts: true
ssh_pwauth: true
users:
- name: guofang
gecos: Guofang
groups: [sudo]
shell: /bin/bash
sudo: "ALL=(ALL) NOPASSWD: ALL"
lock_passwd: false
ssh_authorized_keys:
- @SSH_PUBKEY@
hashed_passwd: $6$0NtCERV3eO12t9oJ$nlFE2sSc66nFfuD5X0xMnOla1cuzOnHfeGNRY5X7dCDHg.WzWVmuRe7M17Puj44.eCWLnJAWt4WNjd9vP9X0D0
chpasswd:
expire: false
apt:
primary:
- arches: [default]
uri: "https://mirrors.ustc.edu.cn/debian"
security:
- arches: [default]
uri: "https://mirrors.ustc.edu.cn/debian-security"
# http_proxy: "http://10.15.112.151:3128/"
# https_proxy: "http://10.15.112.151:3128/"
# http_proxy: "socks5h://10.0.2.2:1080/"
# https_proxy: "socks5h://10.0.2.2:1080/"
# package_update: true
# packages:
# - task-gnome-desktop
# runcmd:
# - systemctl set-default graphical.target
# - systemctl enable gdm3.service
# power_state:
# delay: now
# mode: reboot
# message: "Cloud-init configuration completed; rebooting."
# condition: true