Enable ssh for root + set default password

This commit is contained in:
Alexandre Aubin 2018-04-03 00:46:09 +02:00
parent c89a171cb0
commit 184c1192c5

View file

@ -8,4 +8,8 @@ chmod +x /tmp/install_yunohost
rm -f /etc/ssh/ssh_host_*
apt-get clean
find /var/log -type f -exec rm {} \;
touch /boot/ssh
sed -i '/PermitRootLogin/c\PermitRootLogin yes' /etc/ssh/sshd_config
echo "root:yunohost" | chpasswd
chage -d 0 root
EOF