Help Center/ Huawei HiLens/ FAQs/ FAQs/ HiLens Kit Devices/ Device System Operations/ How Do I Log In to a Device as Root User and Disable Connection Timeout?
Updated on 2023-09-07 GMT+08:00

How Do I Log In to a Device as Root User and Disable Connection Timeout?

There are three types of timeouts you can control: SSHD, CLP (15 minutes), and shell timeout (5 minutes). CLP timeout cannot currently be disabled. The connection times out after 15 minutes, regardless of whether there have been any operations in that time or not. SSHD and shell timeouts, however, can be disabled.

  1. SSHD:
    Log in to the system, using admin by default, and switch to the develop mode. Run vi /etc/ssh/sshd_config to find the statement PermitRootLogin no, and change it to PermitRootLogin yes.
    Figure 1 Disabling SSHD timeouts
    Figure 2 Disabling SSHD timeouts

    (By default, the following statements are not commented out. You can comment them out to allow for login from root.)

    #ClientAliveInterval 0

    #ClientAliveCountMax 0

    #DenyUsers root

    #DenyGroups root

    Figure 3 Disabling SSHD timeouts
  2. Shell:
    Log in to the system as root and run export TMOUT=0.
    Figure 4 Login as root