How to Enable SSH in Huawei Switches

To enable ssh in Huawei Switches and Routers, you must do the following:

1. Configure AAA in order to allow AAA for SSH.

Below are sample steps:

!
aaa
 authentication-scheme default
 authorization-scheme default
 accounting-scheme default
 domain default
 domain default_admin
 local-user sshuser password irreversible-cipher sshuserpassword
 local-user sshuser privilege level 15
 local-user sshuser service-type ssh
!

2. generate rsa keys as per command below:

rsa local-key-pair create

just press enter for default value.

3. enable ssh in vty 0 4

!
user-interface vty 0 4
 authentication-mode aaa
 user privilege level 15
 protocol inbound ssh
!
quit
!

4. enable ssh server

!
stelnet server enable
ssh authentication-type default aaa
return
!

No comments:

Post a Comment

Please post your comment below: