Configuring a remote login mode for the USG2000&5000

0

Configure a remote login mode for the USG2000&5000 as follows:

1. Log in to the device through SSH.
Through the configuration, users log in to the device through SSH to configure and management the device.
Note:
In hot standby networking, SSH configuration commands are not synchronized from the active device to the standby device. You must configure SSH on both devices.
Procedure:
a. Set IP addresses for interfaces.
system-view
[USG] interface GigabitEthernet 0/0/1
[USG-GigabitEthernet0/0/1] ip address 10.1.1.1 255.255.255.0
[USG-GigabitEthernet0/0/1] quit
b. Create SSH user Client001.
Configure the VTY user interface.
[USG] user-interface vty 0 4
[USG-ui-vty0-4] authentication-mode aaa
[USG-ui-vty0-4] protocol inbound ssh
[USG-ui-vty0-4] quit
Create SSH user Client001.
Create SSH user Client001 and set the authentication mode to password authentication.
[USG] ssh user client001
[USG] ssh user client001 authentication-type password
Set the password to Admin@123 for SSH user Client001.
[USG] aaa
[USG-aaa] local-user client001 password irreversible-cipher Admin@123
[USG-aaa] local-user client001 service-type ssh
[USG-aaa] quit
c. Set the service to STelnet for SSH users Client001 and Client002 and enable the STelnet service.
[USG] ssh user client001 service-type stelnet
[USG] stelnet server enable
d. Run the client software that supports SSH and establish an SSH connection.

2. Log in to the device through Telnet.
Through the configuration, users log in to the device through Telnet to configure and management the device.
Note:
Port 23 and Telnet are enabled on the USG by default. Users can run the undo telnet server enable command to disable port 23 and Telnet.
Procedure:
a. Access the USG user view through the console interface.
b. Set IP addresses for interfaces.
The local user access GigabitEthernet0/0/1 of the USG through Telnet, the interface IP address is 10.10.10.10, and subnet mask is 255.0.0.0.
system-view
[USG] interface GigabitEthernet 0/0/1
[USG-GigabitEthernet0/0/1] ip address 10.10.10.10 255.0.0.0
[USG-GigabitEthernet0/0/1] quit
c. Configure user information.
Configure the authentication mode to AAA for the VTY interface, and set the Telnet user name to user1, password to password@123, password storage mode to cipher, and level to level 3.
system-view
[USG] user-interface vty 0 4
[USG-ui-vty0-4] authentication-mode aaa
[USG-ui-vty0-4] protocol inbound telnet
[USG-ui-vty0-4] quit
[USG] aaa
[USG-aaa] local-user user1 password irreversible-cipher password@123
[USG-aaa] local-user user1 service-type telnet
[USG-aaa] local-user user1 level 3
d. Run the Telnet program on a PC (Windows). Choose Start > Run on the PC. In the Run window, enter telnet 10.10.10.10 (to connect interface IP address 10.10.10.10).
e. Click OK to connect to the USG.

Other related questions:
Method for configuring remote login to the web UI of the USG2000&5000 series
The management interface of the firewall has the web login function enabled by default. If you need to log in through other interfaces, enable HTTPS access management at corresponding interfaces.

Configuring Telnet login on the USG2000&5000
For details on how to configure Telnet login on the USG2000&5000, visit the Huawei enterprise website. View or download the desired product documentation by the device model and version. For example, search for "Logging in to the device through Telnet" in the product documentation.

Configuring a remote login mode for the USG6000.
Procedure for configuring a remote login for the USG6000: Remote login through Telnet/SSH Procedure: 1. Configure an administrator IP address for the remote access device. A user whose address is on the network range beyond the one specified in the ACL cannot remotely access the device through Telnet or SSH. system-view [sysname] acl 2000 [sysname-acl-basic-2000] rule permit source x.x.x.x 0 [sysname-acl-basic-2000] quit x.x.x.x is the IP address that can be used to remotely access the device. 2. Configure the limit on the number of connections on the VTY administrator interface. Limiting the maximum number of sessions for remote login prevents excessive system resource consumption, facilitates centralized operation and maintenance, and ensures service continuity upon failures. system-view [sysname] user-interface maximum-vty 3 3. Configure login through Telnet/SSH. Note: It is risky to use Telnet for login. You are advised to use SSH for login. Set the account and password of the administrator who logs in to the device through Telnet. Set the administrator level to 3 and the maximum number of connections for the account to 1. Set the IP addresses of users who can access the device remotely using ACL2000. system-view [sysname] telnet server enable [sysname] user-interface vty 0 4 [sysname-ui-vty0-4] authentication-mode aaa [sysname-ui-vty0-4] acl 2000 inbound [sysname-ui-vty0-4] quit [sysname] aaa [sysname-aaa] manager-user admin1 [sysname-aaa-manager-user-admin1] password Enter Password: Confirm Password: [sysname-aaa-manager-user-admin1] service-type telnet [sysname-aaa-manager-user-admin1] level 3 [sysname-aaa-manager-user-admin1] access-limit 1 Set the password and account of the administrator who logs in to the device through SSH. Set the account and password of the administrator who logs in to the device through SSH. Set the administrator level to 3 and the maximum number of connections for the account to 1. system-view [sysname] user-interface vty 0 4 [sysname-ui-vty0-4] authentication-mode aaa [sysname-ui-vty0-4] quit [sysname] aaa [sysname-aaa] manager-user admin1 [sysname-aaa-manager-user-admin1] ssh authentication-type password [sysname-aaa-manager-user-admin1] password Enter Password: Confirm Password: [sysname-aaa-manager-user-admin1] service-type ssh [sysname-aaa-manager-user-admin1] level 3 [sysname-aaa-manager-user-admin1] access-limit 1 Enable the STelnet service on the device. system-view [sysname] stelnet server enable Set the client service mode of SSH user admin1 to STelnet. [sysname-aaa-manager-user-admin1] ssh service-type stelnet

Method for configuring HTTPS login to the web UI of the USG2000&5000
Web login for the USG2000&5000
Operation procedure
Note:
The USG enables HTTP/HTTPS by default.
When you use HTTP for access, the device automatically switches to use HTTPS that is more secure.
1. Enable the HTTP service.
Run the system-view command to enter the system view.
Run the command of web-manager enable [ port port-number ] to enable the HTTP.
On the web browser, log in to the device through the address in the format of http://ip-address:port. The default port is 80.
2. Enable the HTTPS service.
By default, when the client PC logs in to the server using HTTPS, the server will send a default certificate to the client PC.
Run the system-view command to enter the system view.
Run the command of web-manager security enable port port-number to enable HTTPS.
On the web browser of the client PC, log in to the device through the address in the format of http://ip-address:port. The default port is 8443.
3. (Optional) Configure the timeout period for the web service.
Run the command of web-manager timeout minutes to set the web service timeout period.
The default web service timeout period is 10 minutes.
4. (Optional) Configure a web user.
Run the aaa command to enter the AAA view.
Run the command of local-user user-name password { cipher | irreversible-cipher } password to craete a local AAA user.
Run the command of local-user user-name service-type web to set user type to web.
Run the command of local-user user-name level level to specify the user level.
5. Note:
The default user name of admin and password of Admin@123 can be used for login.
To ensure successful login of the web user, you must at least configure the web user permission to level 3.

Task Example
1. Configure the IP address of the USG.
system-view
[USG] interface GigabitEthernet 0/0/1
[USG-GigabitEthernet0/0/1] ip address 10.1.1.1 24
[USG-GigabitEthernet0/0/1] quit
2. Add the interface to the security zone to ensure normal network communication. The detailed procedure is omitted.
3. Enable the web management function.
[USG] web-manager security enable port 2000
4. Configure a web user.
[USG] aaa
[USG-aaa] local-user webuser password irreversible-cipher Admin@123
[USG-aaa] local-user webuser service-type web
[USG-aaa] local-user webuser level 3
5. Configure the PC IP address as 10.1.1.100/24.
Use the PC browser to access https://10.1.1.1:2000. Enter the user name and password to check whether the device can be logged in to.

First login to the USG2000&5000
Administrators can log in to the web UI through the console interface or HTTPS.

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top