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.
- 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
- Shell:
Device System Operations FAQs
- How Do I Log In to a Device Using SSH?
- After I Change the Password for a Huawei HiLens Device, Why Can't I Use PuTTY to Log In to the Device Even Though I Can Use the New Password to Log in to Huawei HiLens Intelligent Edge System?
- How Do I Perform Bottom-Layer Operations on the HiLens Kit System?
- Can I Import a Custom Python Module to a HiLens Kit Device?
- How Do I Install YUM on HiLens Kit Devices?
- How Do I Manage Device Files?
- How Do I Install Software Packages on HiLens Kit Devices?
- How Do I Log In to a Device as Root User and Disable Connection Timeout?
- Can Python-based OpenMV Devices Invoke HiLens Kit Skills by Calling APIs?
- Why a HiLens Kit Device Cannot Display Chinese Characters?
- How Do I Clear Wi-Fi Information Saved on a HiLens Kit Device?
- How Do I Use SSH Commands to Connect a HiLens Kit Device to a Wi-Fi Network?
- How Do I Configure Permanent DNS on a HiLens Kit Device?
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbotmore