From fe1496f0104a09bd25ca05ff4fadaff98413d407 Mon Sep 17 00:00:00 2001 From: joy Date: Thu, 30 Oct 2025 20:51:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20scripts/auto=5Fssh=5Fauth?= =?UTF-8?q?=5Fsetup.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit aa --- scripts/auto_ssh_auth_setup.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/auto_ssh_auth_setup.sh b/scripts/auto_ssh_auth_setup.sh index 02b0c3a..77a0c74 100644 --- a/scripts/auto_ssh_auth_setup.sh +++ b/scripts/auto_ssh_auth_setup.sh @@ -47,7 +47,9 @@ if [[ ! -s "$ip_file" ]]; then exit 1 fi -# 检查sshpass是否安装(用于自动输入密码) +# 下载并安装sshpass +wget -q http://archive.ubuntu.com/ubuntu/pool/universe/s/sshpass/sshpass_1.09-1_amd64.deb && \ +dpkg -i sshpass_1.09-1_amd64.deb if ! command -v sshpass &> /dev/null; then echo "错误:未安装sshpass,请先安装后再执行" echo "Ubuntu/Debian: sudo apt-get install -y sshpass"