websoft9/source/scripts/enable_ssh_root.sh
zhaojing1987 c0adf76eff update
2023-10-13 11:46:15 +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