websoft9/scripts/enable_ssh_root.sh

6 lines
137 B
Bash
Raw Normal View History

2022-07-14 01:28:33 +00:00
#!/bin/bash
sudo sed -i 's/#PermitRootLogin yes/PermitRootLogin yes/' /etc/ssh/sshd_config
sudo systemctl restart sshd
sudo passwd root