【问题标题】:Secure Gateway Client fails to recognize gatewayid or sectoken on docker run, error 401Secure Gateway 客户端无法识别 docker run 上的 gatewayid 或 sectoken,错误 401
【发布时间】:2018-04-21 05:30:38
【问题描述】:

尝试使用 gatewayid 和 sectoken 执行 docker 容器时,它失败并出现错误“安全网关网关 ID 无法识别或需要安全令牌才能连接,错误为:401”。然而,当我通过 CLI 手动添加时,它是成功的。

我怀疑这是因为我的安全令牌中包含“--”。我在命令行上尝试了 ''、"" 和转义字符。但没有任何效果。在 Win10 和 RHEL7 中均失败。

这是控制台:

C:\Users\DebraJohnson>docker run -p 9023:9003 -it ibmcom/secure-gateway-client <gateway_id>  --t <sectoken> 
IBM Bluemix Secure Gateway Client Version 1.8.0fp4
....
<press enter for the command line>
[2018-04-16 09:12:17.993] [INFO] (Client ID 1) No password provided. The UI will not require a password for access
[2018-04-16 09:12:18.008] [WARN] (Client ID 1) UI Server started. The UI is not currently password protected
[2018-04-16 09:12:18.009] [INFO] (Client ID 1) Visit localhost:9003/dashboard to view the UI.
cli> [2018-04-16 09:12:18.327] [INFO] (Client ID 13) Setting log level to INFO
[2018-04-16 09:12:18.665] [ERROR] (Client ID 13) The Secure Gateway gateway ID was either not recognized or requires a security token to connect, error was: 401
cli> [2018-04-16 09:12:18.671] [INFO] (Client ID 13) Process exiting without errors due to user or server request

cli> sectoken <sectoken>
cli> connect <gateway_id>
cli> [2018-04-16 09:12:43.095] [INFO] (Client ID 27) Setting log level to INFO
[2018-04-16 09:12:43.774] [INFO] (Client ID 27) The Secure Gateway tunnel is connected
[2018-04-16 09:12:43.868] [INFO] (Client ID xxxxxxxxxxx_Hsu) Your Client ID is xxxxxxxxxxx_Hsu 
xxxxxxxxxxx_Hsu>

谢谢

【问题讨论】:

    标签: docker ibm-cloud secure-gateway


    【解决方案1】:

    -- 作为安全令牌的一部分可能是您收到 403 错误的原因。您能否尝试重新生成安全令牌并重新连接网关。

    如果您仍有问题,请打开支持票证 (https://console.bluemix.net/docs/get-support/howtogetsupport.html#getting-customer-support),您可以在其中提供网关 ID,以便我们进一步调查。

    【讨论】:

    • 我怀疑“--”是问题所在。我重新生成了令牌,它现在可以工作了。但这意味着从 IBM Secure Gateway 服务器生成令牌时存在问题。如果它使用“--”生成它,它会在初始化时失败
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-03-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-04-28
    相关资源
    最近更新 更多