远程SSH终端

更新时间:2018-08-01 11:40:58

1. 前置准备

  • 安全模块deploy_sst已部署

  • 网关三元组(gw_system_productkey/gw_system_devicename/gw_system_devicesecret)已导入

  • DIMU依赖参数(gw_dimu_devicetuple/gw_dimu_autoauth)已导入

确认前置条件是否已准备好:

root@61bd7bb5bb45:~/Prerelease_V1.2_0530/build/bin# ./tool_config -g gw_dimu_autoauth
get config success, value:on.
root@61bd7bb5bb45:~/Prerelease_V1.2_0530/build/bin# ./tool_config -g gw_dimu_devicetuple
get config success, value:[[b1tsU4IqLPa,iiot_gateway,J5EOKHYjHeQHdyTVpKDbZQpOAwoo5B43]].
root@61bd7bb5bb45:~/Prerelease_V1.2_0530/build/bin#
root@61bd7bb5bb45:~/Prerelease_V1.2_0530/build/bin# ./tool_config -g gw_system_productkey
get config success, value:b1tsU4IqLPa.
root@61bd7bb5bb45:~/Prerelease_V1.2_0530/build/bin# ./tool_config -g gw_system_devicename
get config success, value:iiot_gateway.
root@61bd7bb5bb45:~/Prerelease_V1.2_0530/build/bin#
root@61bd7bb5bb45:~/Prerelease_V1.2_0530/build/bin# ./tool_config -g gw_system_devicesecret
get config success, value:J5EOKHYjHeQHdyTVpKDbZQpOAwoo5B43.

若下面的参数获取异常请返回快速开始查看网关搭建章节。

2. 打开远程终端功能

2.1 新建服务

网关必须包含RemoteTerminalSwitch服务,如下:

image | left

若不存在请新建该服务(输入参数switcher为布尔值,0为off,1为on):

image | left

2.2 重启网关

重启网关后确认网关是否上线成功

image | left

2.3 调用服务

选择待调试的设备,调用该服务,on为打开远程终端功能,off为关闭

image | left

3. 启动远程终端

打开远程调试助手,输入网关三元组和网关用户名密码后,点击开启远程调试即可:

默认用户名:iiot,密码:iiot

VPC环境不需要TLS加密,非VPC环境需要

image | left

results matching ""

    No results matching ""