mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-09-29 08:11:14 +00:00
Create enable_ssh_root.sh
This commit is contained in:
parent
87cb65e8d9
commit
47b3983896
5
scripts/enable_ssh_root.sh
Normal file
5
scripts/enable_ssh_root.sh
Normal 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
|
Loading…
Reference in a new issue