欢迎光临
我们一直在努力

【TongWeb7】M11开启远程访问控制台

TongWeb7.0.4.9_M11增加出厂默认访问安全策略。

  • 默认仅本机可访问TongWeb控制台
  • 通过命令行对开启控制台远程访问进行设置
    • 前置:修改cli用户密码
    • 开启console远程访问
      • 关闭console远程访问
    • 开启heimdall远程访问
      • 关闭heimdall远程访问
    • 开启cli用户的远程访问
      • 关闭cli用户的远程访问
  • 注意

默认仅本机可访问TongWeb控制台

  • 只有修改控制台所有用户默认密码后,才可开启远程访问。
  • 启动服务后访问控制台会提示 在这里插入图片描述

通过命令行对开启控制台远程访问进行设置

前置:修改cli用户密码

  • 启动TW服务,命令行需要访问9060端口进行操作

  • 首次使用“cli”用户时,需要使用“change-admin-password”修改密码。(如果之前修改过cli密码,可以跳过第二步)

    默认密码:cli123.com

  • [root@localhost bin]# pwd
    /opt/TongWeb7.0.4.9_M11_Enterprise_Linux/bin
    [root@localhost bin]#
    [root@localhost bin]# ./commandstool.sh change-admin-password
    Please enter the admin user name>cli
    Please enter the old admin password>cli123.com
    Please enter the new admin password>Zxc124.com
    Please enter the new admin password again>Zxc124.com
    Command change-admin-password executed successfully.
    [root@localhost bin]#

    开启console远程访问

    `注:第一次必须修改四个用户的默认密码!才能开启成功`
    四个用户分别为系统管理员(thanos)、安全保密管理员(security)、安全审计员(auditor)、监视管理员(monitor)

    [root@localhost bin]# ./commandstool.sh update-console-remote-access –thanosPassword=Zxc124.com –securityPassword=Zxc124.com –auditorPassword=Zxc124.com –monitorPassword=Zxc124.com remote
    Please enter the admin user name>cli
    Please enter the admin password>Zxc124.com
    ************************
    Console access type is set to: remote
    Password update summary – updated users: [thanos, security, auditor, monitor], ignored users (already changed before): [none].
    ************************
    Command update-console-remote-access executed successfully.
    [root@localhost bin]#

    关闭console远程访问

    [root@localhost bin]# ./commandstool.sh update-console-remote-access local
    Please enter the admin user name>cli
    Please enter the admin password>Zxc124.com
    ************************
    Console access type is set to: local

    ************************
    Command update-console-remote-access executed successfully.
    [root@localhost bin]#

    开启heimdall远程访问

    `注:第一次必须修改四个用户的默认密码!才能开启成功`

    四个用户分别为系统管理员(rig)、安全保密管理员(secadm)、安全审计员(audit)、监视管理员(monitor)

    [root@localhost bin]# ./commandstool.sh update-heimdall-remote-access –rigPassword=Zxc124.com –secadmPassword=Zxc124.com –auditPassword=Zxc124.com –monitorPassword=Zxc124.com remote
    Please enter the admin user name>cli
    Please enter the admin password>Zxc124.com
    ************************
    heimdall access type is set to: remote
    Password update summary – updated users: [rig, secadm, audit, monitor], ignored users (already changed before): [none].
    ************************
    Command update-heimdall-remote-access executed successfully.
    [root@localhost bin]#

    关闭heimdall远程访问

    [root@localhost bin]# ./commandstool.sh update-heimdall-remote-access local
    Please enter the admin user name>cli
    Please enter the admin password>Zxc124.com
    ************************
    heimdall access type is set to: local

    ************************
    Command update-heimdall-remote-access executed successfully.
    [root@localhost bin]#

    开启cli用户的远程访问

    [root@localhost bin]# ./commandstool.sh update-cli-remote-access remote
    Please enter the admin user name>cli
    Please enter the admin password>Zxc124.com
    ************************
    Cli access type is set to : remote
    ************************
    Command update-cli-remote-access executed successfully.

    关闭cli用户的远程访问

    [root@localhost bin]# ./commandstool.sh update-cli-remote-access local
    Please enter the admin user name>cli
    Please enter the admin password>Zxc124.com
    ************************
    Cli access type is set to : local
    ************************
    Command update-cli-remote-access executed successfully.
    [root@localhost bin]#

    注意

  • 修改后刷新页面注意地址是/console,不应该是/console/localerror.jsp
  • 生成的相关配置在conf/security/remote-access.properties 下,动态密钥加密,不可拷贝使用。
  • 如果忘记控制台密码,通过删除twusers.properties.bak、heimdall-users.properties.bak文件,,并覆盖conf/security/下的twusers.properties、heimdall-users.properties 文件来恢复默认密码,只要remote-access.properties文件保留,重启后可以直接远程访问控制台。
  • 赞(0)
    未经允许不得转载:171主机测评 » 【TongWeb7】M11开启远程访问控制台
    分享到: 更多 (0)

    评论 抢沙发

    • 昵称 (必填)
    • 邮箱 (必填)
    • 网址