华为交换机配置SSH、telnet
作者:互联网
- 交换机配置ssh
- 生成本地密钥对,可选512-2048,这边我们选择1024
-
[LSW5]rsa local-key-pair create
The key name will be: LSW5_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]: -
配置VTY用户界面
-
[LSW5]user-interface vty 0 4
[LSW5-ui-vty0-4]au
[LSW5-ui-vty0-4]aut
[LSW5-ui-vty0-4]authentication-mode aaa
[LSW5-ui-vty0-4]pr
[LSW5-ui-vty0-4]protocol in
[LSW5-ui-vty0-4]protocol inbound ssh -
在aaa试图下创建ssh用户
-
[LSW5]aaa
[LSW5-aaa]local-user admin privilege level 15 password cipher 123456 #用户等级为15,密码设置为加密
[LSW5-aaa]local-user admin service-type ssh #设置登录服务
-
配置ssh认证方式和服务方式
- [LSW5]ssh user admin authentication-type all #这边选择了所有的认证方式
- [LSW5]ssh user admin service-type stelnet #服务方式为ssh
- 客户端需要开启ssh首次登录
- [AR1]ssh client first-time
标签:aaa,vty0,LSW5,user,telnet,交换机,ui,ssh,SSH 来源: https://www.cnblogs.com/xiaozou8/p/16583119.html