Using STelnet to Log In to a Server

After you log in to a device through a console port and configure the device, you can use STelnet to log in to and remotely maintain the device.

Context

Log in to the server through STelnet from the terminal (SSH client), as shown in Figure 1. On the PC, run SSH1.5 or a later version to set up a local connection with the device.

This section uses PuTTY as an example to describe how to log in to the SSH server through STelnet.

Figure 1 Networking diagram for configuring SSH services

Data Preparation

PuTTYGen.exe and PuTTY.exe have been installed.

Table 1 Data preparation

Device

Interface

IP Address

SSH server

GE0/1/0

10.248.103.194/24

PC

Network port on the PC

10.248.103.195/24

Procedure

  1. Create an SSH key pair on the SSH client.

    1. Enter the Windows Command Prompt window.
    2. Enter PuTTYGen and click Generate to generate a key pair, as shown in Figure 2.

      Figure 2 PuTTY Key Generator (1)

      Move the mouse continuously during the generation of the key pair and move the pointer in the window other than the process bar in green. Otherwise, the progress bar stops, and the generation of the key pair stops as well, as shown in Figure 3.

      Figure 3 PuTTY Key Generator (2)
    3. After the key pair is generated, enter the password in the Key passphrase text box and enter the password again in the Confirm passphrase text box. This password is used for the SSH terminal user to log in to the SSH server. Click Save private key, enter private for the name of the private key file, and click Save. Copy the generated public key to the Notepad and name it public.txt.

      Figure 4 PuTTY Key Generator (3)

  2. Configure the SSH client.

    1. Start the PuTTY.exe program. The PuTTY configuration page as shown in Figure 5 is displayed. For security purposes, using PuTTY 0.58 or later is recommended. Enter the IP address of the SSH server in the Host Name (or IP address) text box.

      Figure 5 SSH client configuration page (1)
    2. In the navigation tree on the left of the SSH client configuration page, choose Category > Connection > SSH. The dialog box as shown in Figure 6 is displayed. In the Protocol options area, set Preferred SSH protocol version to 2.

      Figure 6 SSH client configuration page (2)
    3. Select Auth in SSH. The dialog box as shown in Figure 7 is displayed. Click Browse to import the private key file private.ppk.

      Figure 7 SSH client configuration page (3)
    4. Click Open. If the connection is normal, the system prompts you to enter the user name, as shown in Figure 8.

      Figure 8 SSH client login authentication page

Follow-up Procedure

When the network administrator needs to disconnect login users from the device, you can run the kill user-interface { ui-number | { { console | vty | nca | rpc } ui-number1 | interface-name } } command to clear online users.

Console can be specified only for the admin VS.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >