From: Dietmar Maurer Date: Wed, 10 Jun 2015 09:50:24 +0000 (+0200) Subject: allow ssh root login X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=c2657b8ba2f220c768aa40bccbfbec029db269a0;p=pve-installer.git allow ssh root login --- diff --git a/Makefile b/Makefile index 5767ada..f651ae7 100644 --- a/Makefile +++ b/Makefile @@ -61,7 +61,7 @@ packages: /pve/${RELEASE}/install/pve.files mv packages.tmp packages test.img: - dd if=/dev/zero of=test.img bs=1024 count=1M + dd if=/dev/zero of=test.img bs=2048 count=1M check: packages test.img G_SLICE=always-malloc ./proxinstall -t test.img diff --git a/proxinstall b/proxinstall index 8405b3b..8116ad1 100755 --- a/proxinstall +++ b/proxinstall @@ -1214,6 +1214,9 @@ _EOD # file does not exist) write_config ('', "$targetdir/var/lib/apt/extended_states"); + # allow ssh root login + syscmd ("sed -i 's/^PermitRootLogin.*/PermitRootLogin yes/' '$targetdir/etc/ssh/sshd_config'"); + # save installer settings my $ucc = uc ($country); debconfig_set ($targetdir, <<_EOD);