From 47b3983896192731ebcfa2aa3b93c0487e40b038 Mon Sep 17 00:00:00 2001 From: Darren <27513732@qq.com> Date: Thu, 14 Jul 2022 09:28:33 +0800 Subject: [PATCH] Create enable_ssh_root.sh --- scripts/enable_ssh_root.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 scripts/enable_ssh_root.sh diff --git a/scripts/enable_ssh_root.sh b/scripts/enable_ssh_root.sh new file mode 100644 index 00000000..2a021bcc --- /dev/null +++ b/scripts/enable_ssh_root.sh @@ -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