websoft9/scripts/enable_ssh_root.sh
2022-07-14 09:28:33 +08:00

6 lines
137 B
Bash

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