#!/bin/bash sudo sed -i 's/#PermitRootLogin yes/PermitRootLogin yes/' /etc/ssh/sshd_config sudo systemctl restart sshd sudo passwd root