更新 scripts/auto_ssh_auth_setup.sh

aa
This commit is contained in:
joy 2025-10-30 20:51:33 +08:00
parent 98c0908a70
commit fe1496f010
1 changed files with 3 additions and 1 deletions

View File

@ -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"