#!/bin/bash
(
echo "sss123"
echo "sss123"
) | passwd --stdin root
sed -i "s/^PasswordAuthentication no/PasswordAuthentication yes/g" /etc/ssh/sshd_config
sed -i "s/^PermitRootLogin no/PermitRootLogin yes/g" /etc/ssh/sshd_config
service sshd restart
yum -y install httpd
systemctl enable httpd
systemctl start httpd
echo '<html><h1> web01 </h1></html>' > /var/www/html/index.html