1、创建rsa本地密钥对与创建账号
[Huawei]rsa local-key-pair create
The key name will be: Huawei_Host
The range of public key size is (512 ~ 2048).
NOTES: If the key modulus is greater than 512,
it will take a few minutes.
Input the bits in the modulus[default = 512]:
Generating keys...
2、华为交换机上面创建账号
aaa
local-user admin password cipher TKG40##Y,C!NZPO3JBXBHA!!
local-user admin privilege level 15
local-user admin service-type ssh
3、开启ssh服务以及ssh用户:
stelnet server enable
ssh user admin
ssh user admin authentication-type password
ssh user admin service-type stelnet
4、VTY下添加设置:
[Huawei]user-interface vty 0 4
[Huawei-ui-vty0-4]authentication-mode aaa
[Huawei-ui-vty0-4]protocol inbound ssh