mirror of
https://github.com/thelittlerocket/pve.git
synced 2025-03-04 01:38:12 +08:00
Update rebuild_qcow2.sh
This commit is contained in:
parent
4b16fa3e0d
commit
01f98b64fc
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ elif [[ "$qcow_file" == *"alpine"* ]]; then
|
|||
echo "启用root登录..."
|
||||
virt-customize -a $qcow_file --edit '/etc/cloud/cloud.cfg:s/preserve_hostname: *false/preserve_hostname: true/'
|
||||
virt-customize -a $qcow_file --edit '/etc/cloud/cloud.cfg:s/disable_root: *true/disable_root: false/'
|
||||
virt-customize -a $qcow_file --edit '/etc/ssh/sshd_config:s/PasswordAuthentication no/PasswordAuthentication yes/'
|
||||
virt-customize -a $qcow_file --edit '/etc/ssh/sshd_config:s/PasswordAuthentication *no/PasswordAuthentication yes/'
|
||||
virt-customize -a $qcow_file --edit '/etc/ssh/sshd_config:s/^#?\(Port\).*/\1 22/'
|
||||
virt-customize -a $qcow_file --edit '/etc/ssh/sshd_config:s/^#PermitRootLogin\|PermitRootLogin/c PermitRootLogin yes/'
|
||||
virt-customize -a $qcow_file --edit '/etc/ssh/sshd_config:s/^#AddressFamily\|AddressFamily/c AddressFamily any/'
|
||||
|
|
Loading…
Reference in a new issue