From 38be1c66d526222439a298561c8796a1935caac8 Mon Sep 17 00:00:00 2001 From: zhanglikun Date: Wed, 31 Jan 2024 13:56:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=20ssh=20=E9=93=BE=E6=8E=A5?= =?UTF-8?q?=E9=80=9F=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- init/init.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/init/init.sh b/init/init.sh index 0be2b0e..4dcc3ce 100755 --- a/init/init.sh +++ b/init/init.sh @@ -28,3 +28,6 @@ sed -i 's/.*swap.*/#&/' /etc/fstab yum install -y ./*.rpm yum install -y ./git-2.31.1/*.rpm +sed -i 's/.*UseDNS .*/UseDNS no/' /etc/ssh/sshd +systemctl restart sshd +