websoft9/source/scripts/enable_ssh_root.sh

6 lines
137 B
Bash
Raw Normal View History

2023-10-13 11:46:15 +08:00
#!/bin/bash
sudo sed -i 's/#PermitRootLogin yes/PermitRootLogin yes/' /etc/ssh/sshd_config
sudo systemctl restart sshd
sudo passwd root