Tuesday , 25 March 2025
Home » HUAWEI » Enable SSH on a Huawei Switch

Enable SSH on a Huawei Switch

To enable SSH on a Huawei switch, follow these steps:

Step 1: Configure the Management Interface

Assign an IP address to the management VLAN interface.

system-view
interface Vlanif1
ip address 192.168.1.1 255.255.255.0
quit

Step 2: Create a Local User

Define a local user with SSH access rights.

aaa
local-user admin password cipher Huawei@123
local-user admin privilege level 15
local-user admin service-type ssh
quit

Step 3: Configure SSH User Authentication

Set the SSH authentication mode to password.

ssh user admin authentication-type password

Step 4: Enable the SSH Server

Activate the SSH server on the switch.

stelnet server enable

Step 5: Enable VTY for SSH Access

Configure the VTY (Virtual Terminal) settings.

user-interface vty 0 4
authentication-mode aaa
protocol inbound ssh
quit

Step 6: Generate RSA Key Pair

Create an RSA key for SSH encryption.

rsa local-key-pair create
  • If prompted for key size, enter 2048 (recommended for security).

Step 7: Save the Configuration

Save the changes to apply them permanently.

Step 8: Test SSH Connection

From a remote device, use an SSH client to connect:

ssh admin@192.168.1.1

If you have any specific Huawei model in mind, let me know, and I can tailor the steps accordingly!

HOME

Leave a Reply

Your email address will not be published. Required fields are marked *

Translate »