Help Center> Huawei HiLens> FAQs> HiLens Kit Devices> Device System Operations> How Do I Log In to a Device Using SSH?
Updated on 2022-08-18 GMT+08:00

How Do I Log In to a Device Using SSH?

This section uses a HiLens Kit camera as an example to show you how to log in to a device using SSH. The procedure is as follows:

  1. Connecting a HiLens Kit Device to a PC Using a Network Cable
  2. Connecting the Network Between Your PC and the HiLens Kit Device
  3. Remotely Connecting to HiLens Kit Cameras Using SSH

Connecting a HiLens Kit Device to a PC Using a Network Cable

Figure 1 and Table 1 show the ports on the rear panel of the HiLens Kit device.
Figure 1 Ports on the rear panel
Table 1 Description of ports on the rear panel

Port

Description

1

Power button

2

Power socket

3

Management network port

  1. Connect a 12 V DC power adapter to the power socket on the rear panel of the HiLens Kit device.
  2. Press and hold the power button for 1 to 2 seconds to power on the HiLens Kit device.
  3. Connect one end of the network cable to the management network port of the device and the other end to an Ethernet port of the PC.

Connecting the Network Between Your PC and the HiLens Kit Device

Set an IP address and a subnet mask or route for the PC so that the PC can properly communicate with the device.
  1. Click the network icon in the lower right corner of the PC and click Network & Internet settings.
  2. On the Network & Internet settings page, click Change adapter options to enter the Network Connections page.
  3. After the HiLens Kit device is connected to the PC using a network cable, a connection icon is displayed on the Network Connections page of the PC. Right-click the connection (usually named Local Area Connection) and choose Properties from the shortcut menu. The Local Area Connection Properties dialog box is displayed.
  4. Double-click Internet Protocol Version 4 and select Use the following IP address. Then, enter an IP address that is in the same network segment as the device IP address and click the Subnet mask text box to automatically generate a subnet mask. Click OK.
    For the initial IP address of the device, use the Default Value of Initial IP address of the management network port in HiLens Kit User Guide > Default Credentials.
    • You can connect to the HiLens Kit device from the PC using SSH only when the IP address in Local Area Connection Properties > Internet Protocol Version 4 Properties is in the same network segment as the IP address of the HiLens Kit device. The same network segment means that the first three octets of the local connection IP address are the same as those of the device IP address. For example, if the device IP address is 192.168.2.111, the IP address (in the same network segment as the device IP address) configured in Local Area Connection Properties > Internet Protocol Version 4 Properties can be 192.168.2.x, where x is an integer from 2 to 255 with the exception of 111.
    • If the device IP address has been changed, configure the IP address in Local Area Connection Properties > Internet Protocol Version 4 Properties to an IP address in the same network segment as the new device IP address. For details, see "Wired Network Configuration".
    Figure 2 Modify network properties (6)

Remotely Connecting to HiLens Kit Cameras Using SSH

  1. Use SSH to remotely connect to the HiLens Kit device.
    1. Start PuTTY, click Session, enter the device IP address in the Host Name (or IP address) text box, and enter the port number in the Port text box. Assume that the device IP address is 192.168.2.111 and the port number is 22. Figure 3 shows the page.
      Figure 3 Using PuTTY to log in to the HiLens Kit device
    2. Click Open.

      Log in to the device.

  2. Use SSH to remotely connect to the device system.

    After the admin@192.168.2.111's password prompt, enter the admin password. For details about the preset password for the first login, see .

  3. Use SSH to remotely log in to the developer CLI.
    1. After the IES:/-> prompt, run the develop command.
    2. After the Password prompt, enter the root password. For details about the preset password for the first login, see .
    Figure 4 Connecting to the device using SSH
  4. Use SSH to remotely modify the device time.
    1. Run the following command to change the time zone to that of :

      timedatectl set-timezone

    2. Modify the device time. Assume that the current time is 19:19:19 on October 17, 2019. Run the following commands:

      date -s "2019-10-17 19:19:19"

      hwclock -w

      reboot

      Restarts the device.

Device System Operations FAQs

more