Create enable_ssh_root.sh

This commit is contained in:
Darren 2022-07-14 09:28:33 +08:00 committed by GitHub
parent 87cb65e8d9
commit 47b3983896
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,5 @@
#!/bin/bash
sudo sed -i 's/#PermitRootLogin yes/PermitRootLogin yes/' /etc/ssh/sshd_config
sudo systemctl restart sshd
sudo passwd root