14 lines
478 B
Bash
Executable File
14 lines
478 B
Bash
Executable File
SSH_PUBLIC_KEY="ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOyva+cul3WOW3ct53a0QMRTkhtKvA2QpJI0p8bv48tH alex@alex-XPS-15-9570"
|
|
SSH_KEY_FILE="/tmp/200_id_rsa.pub"
|
|
echo "$SSH_PUBLIC_KEY" > "$SSH_KEY_FILE"
|
|
|
|
# Esegui la configurazione completa (usando lo storage 'local' per gli snippet)
|
|
qm set 200 \
|
|
--ciuser root \
|
|
--sshkeys "$SSH_KEY_FILE" \
|
|
--ipconfig0 "ip=192.168.1.200/24,gw=192.168.1.1" \
|
|
--nameserver "8.8.8.8"
|
|
|
|
# Pulisci il file SSH temporaneo
|
|
rm "$SSH_KEY_FILE"
|