sshd on port 42666 instead of 22
This commit is contained in:
parent
fdfe0cdc03
commit
8de6abd4bd
2 changed files with 5 additions and 2 deletions
|
@ -22,7 +22,8 @@ virt-builder debian-12 -o ${NAME}.qcow2 --format qcow2 \
|
|||
--run-command 'systemctl enable fstrim.timer' \
|
||||
--edit '/etc/default/grub:s,GRUB_CMDLINE_LINUX="",GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0",' \
|
||||
--edit '/etc/default/grub:s,GRUB_TIMEOUT=.*,GRUB_TIMEOUT=1,' \
|
||||
--run-command 'update-grub'
|
||||
--run-command 'update-grub' \
|
||||
--edit '/etc/ssh/sshd_config:s,#?Port.*,Port 42666,' \
|
||||
|
||||
qm destroy ${VMID} || true
|
||||
qm create ${VMID} --name ${NAME} --memory 1024 --net0 virtio,bridge=${BRIDGE}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue