ssh key beim erstellen mit hinzufuegen
vermerk zur moeglichkeit fuer das hinzufuegen von einem oeffentlichen schluessel fuer ssh bei der erstellung von einem container mit lxc
This commit is contained in:
parent
838f075190
commit
406dbae70a
6
proxmox/nixprox.sh
Executable file → Normal file
6
proxmox/nixprox.sh
Executable file → Normal file
|
@ -13,6 +13,12 @@ fi
|
||||||
ID=$1
|
ID=$1
|
||||||
NAME=$2
|
NAME=$2
|
||||||
|
|
||||||
|
# todo vater@c3d2.de
|
||||||
|
# schaffen der moeglichkeit zum hinzufuegen von einem oeffentlichen schluessel fuer ssh (fuer das konto root)
|
||||||
|
# (es gab beim "durchexerzieren" 2021-09-04 eine situation wo es noetig gewesen waere einen key hinterlegt zu haben.)
|
||||||
|
# https://pve.proxmox.com/pve-docs/pct.1.html
|
||||||
|
# --ssh-public-keys
|
||||||
|
|
||||||
#pct create $ID local:vztmpl/nixos-system-x86_64-linux.tar.xz --arch amd64 --hostname $NAME --ostype unmanaged --net0 name=eth0,bridge=vmbr0,tag=5 --storage vms-slow --cmode shell
|
#pct create $ID local:vztmpl/nixos-system-x86_64-linux.tar.xz --arch amd64 --hostname $NAME --ostype unmanaged --net0 name=eth0,bridge=vmbr0,tag=5 --storage vms-slow --cmode shell
|
||||||
pct create $ID $TEMPLATE --hostname $NAME --ostype unmanaged --arch amd64 --net0 name=eth0,bridge=vmbr0,tag=5 --storage vms-slow --cmode shell --features nesting=1
|
pct create $ID $TEMPLATE --hostname $NAME --ostype unmanaged --arch amd64 --net0 name=eth0,bridge=vmbr0,tag=5 --storage vms-slow --cmode shell --features nesting=1
|
||||||
echo "lxc.init.cmd: /init" >> /etc/pve/lxc/$ID.conf
|
echo "lxc.init.cmd: /init" >> /etc/pve/lxc/$ID.conf
|
||||||
|
|
Loading…
Reference in New Issue
Block a user