Open yuan1994 opened 7 years ago
附加一句,我的系统是 OS X 10.11.6
近期我测试一下,好久不用ngrok了,我找个服务器装一下
好的,辛苦了
如何生成windows客户端,我试了下make release老是失败
@clangcn Windows客户端使用时密码设置也无效 只有服务器端配置成
bin/ngrokd -domain="xxx.com" -httpAddr=":8080" -httpsAddr=":8443" -tlsKey="./server.key" -tlsCrt="./server.crt" -pass="" -tunnelAddr=":4443"
-pass=""
才可以
@DanielChan27 项目里有编译好的下载过来就行了 名称client_ngrok_windows_amd64.exe
打印出的日志如下,Password处值为空,身份认证失败,在Linux系统下正常
[03/30/17 13:32:53] [INFO] Reading configuration file ./config.conf [03/30/17 13:32:53] [INFO] [client] Trusting root CAs: [assets/client/tls/ngrokroot.crt] [03/30/17 13:32:53] [INFO] [view] [web] Serving web interface on 127.0.0.1:4040 [03/30/17 13:32:53] [INFO] Checking for update [03/30/17 13:32:54] [DEBG] [ctl:34155a33] New connection to: xxx.xxx.xxx.xxx:4443 [03/30/17 13:32:54] [DEBG] [ctl:34155a33] Writing message: {"Type":"Auth","Payload":{"Version":"2","MmVersion":"1.7","User":"xx","Password":"","OS":"darwin","Arch":"amd64","ClientId":""}} [03/30/17 13:32:54] [DEBG] [ctl:34155a33] Waiting to read message [03/30/17 13:32:54] [DEBG] [ctl:34155a33] Reading message with length: 95 [03/30/17 13:32:54] [DEBG] [ctl:34155a33] Read message {"Type":"AuthResp","Payload":{"Version":"","MmVersion":"","ClientId":"","Error":"Auth failed"}} [03/30/17 13:32:54] [DEBG] [ctl:34155a33] Closing [03/30/17 13:32:54] [EROR] control recovering from failure EOF [03/30/17 13:32:54] [INFO] Waiting 1 seconds before reconnecting
Writing message: {"Type":"Auth","Payload":{"Version":"2","MmVersion":"1.7","User":"wenbenyun","Password":"","OS":"darwin","Arch":"amd64","ClientId":""}} [10/19/19 02:15:14] [DEBG] [ctl:4d1fc12c] Waiting to read message [10/19/19 02:15:14] [DEBG] [ctl:4d1fc12c] Reading message with length: 95 [10/19/19 02:15:14] [DEBG] [ctl:4d1fc12c] Read message {"Type":"AuthResp","Payload":{"Version":"","MmVersion":"","ClientId":"","Error":"Auth failed"}} Failed to authenticate to server: Auth failed [10/19/19 02:15:14] [DEBG] [ctl:4d1fc12c] Closing [10/19/19 02:15:14] [INFO] [controller] Shutting down [10/19/19 02:15:14] [INFO] Waiting 1 seconds before reconnecting
我的也是一样的
centos7.6也是一样的,使用在运行命令中也不好使 Writing message: {"Type":"Auth","Payload":{"Version":"2","MmVersion":"1.7","User":"aiuser:9LM47oMNBykE3zeP","Password":"","OS":"linux","Arch":"amd64","ClientId":""}} Read message {"Type":"AuthResp","Payload":{"Version":"","MmVersion":"","ClientId":"","Error":"Auth failed"}} 设置-httpauth ngrok.conf配置文件中增加password,json中password始终为空,返回认证失败
打印出的日志如下,Password处值为空,身份认证失败,在Linux系统下正常