本文主要讲解华为交换机账号密码方式SSH登录
工具/原料
1
电脑
2
网线
3
交换机
方法/步骤
1
之前文章已讲解过SSH登录的过程,在这里就不赘述了。直接从交换机上面的设置来进行讲解。1、创建rsa本地密钥对与创建账号1)[Huawei]rsa local-key-pair create The key name will be: Huawei_HostThe 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)华为交换机上面创建账号aaalocal-user admin password cipher TKG40##Y,C!NZPO3JBXBHA!!local-user admin privilege level 15 local-user admin service-type ssh
2
2、开启ssh服务以及ssh用户:stelnet server enablessh user adminssh user admin authentication-type passwordssh user admin service-type stelnet