This commit is contained in:
zj
2026-01-23 05:29:54 +08:00
parent 680f3877fb
commit 643f10d77f
5 changed files with 23 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
HostKeyAlgorithms +ssh-rsa
HostKeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa
KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp521,ecdh-sha2-nistp384,ecdh-sha2-nistp256,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group14-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1

View File

@@ -8,6 +8,7 @@ curl -s -X POST -d 'userName=admin&userPassword=admin' -c "$COOKIE_FILE" http://
if [ $? -ne 0 ]; then
echo "错误: 登录 SmartTMS_S3 失败。请检查服务是否运行或网络连接。"
rm -f "$COOKIE_FILE" # 清理可能不完整的cookie文件
sleep 5
exit 1
fi
echo "登录成功。"
@@ -18,6 +19,7 @@ JSON_RESPONSE=$(curl -s -X POST -b "$COOKIE_FILE" 'http://127.0.0.1:8080/SmartTM
if [ $? -ne 0 ] || [ -z "$JSON_RESPONSE" ]; then
echo "错误: 无法获取系统配置信息或返回为空。检查tms是否启动"
rm -f "$COOKIE_FILE"
sleep 5
exit 1
fi
@@ -26,6 +28,7 @@ KEY_ENCODING=$(echo "$JSON_RESPONSE" | sed -n 's/.*"result":{[^}]*"code":"\([^"]
if [ -z "$KEY_ENCODING" ]; then
echo "错误: 无法从接口响应中提取到有效的密钥编码。检查配置中是否填写影院编码"
rm -f "$COOKIE_FILE"
sleep 5
exit 1
fi