websoft9/source/scripts/enable_ssh_root.sh
zhaojing1987 8a4c98b592 update
2023-11-24 08:40:42 +08:00

5 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