Y Duc
Đã tốn tiền
Code:
sed -i "s/PermitRootLogin/#PermitRootLogin/g" /etc/ssh/sshd_config
sed -i "s/PasswordAuthentication/#PasswordAuthentication/g" /etc/ssh/sshd_config
echo 'PermitRootLogin yes' >> /etc/ssh/sshd_config
echo 'PasswordAuthentication yes' >> /etc/ssh/sshd_config
service sshd restart
VAR="PassCuaBan";printf "$VAR\n$VAR\n" | passwd root