From 6f29314ca142b6a9df68488febcf8b3ef23ef6d7 Mon Sep 17 00:00:00 2001 From: LamGC Date: Mon, 23 Oct 2023 08:21:58 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20authorized=5Fkeys?= =?UTF-8?q?=20=E4=BF=9D=E5=AD=98=E5=90=8E=E4=B8=A2=E5=A4=B1=E6=8D=A2?= =?UTF-8?q?=E8=A1=8C=E7=AC=A6=E7=9A=84=E9=97=AE=E9=A2=98.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conf-sshd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 conf-sshd.sh diff --git a/conf-sshd.sh b/conf-sshd.sh old mode 100644 new mode 100755 index a10c0d1..9935835 --- a/conf-sshd.sh +++ b/conf-sshd.sh @@ -79,7 +79,7 @@ update_sshkeys() { echo "-------------------- SSH Keys --------------------" echo "$ssh_keys" echo "--------------------------------------------------" - echo $ssh_keys > ~/.ssh/authorized_keys + echo "$ssh_keys" > ~/.ssh/authorized_keys chmod 600 ~/.ssh/authorized_keys # 输出更新成功,需要附带时间日期 echo "SSH public key updated successfully at $(date '+%Y-%m-%d %H:%M:%S')"