Network

2020-04-21

交换机配置 SSH 和 Telnet

华为交换机

[Huawei] rsa local-key-pair create // 这个仅是 ssh 登录需要创建
[Huawei] user-interface vty 0 4   // 进入虚拟终端
[Huawei-ui-vty0-4] authentication-mode aaa  // 认证模式AAA
[Huawei-ui-vty0-4] protocol inbound all     // 用户登录协议(all | ssh | telnet)
[Huawei] aaa                       // 进入 AAA 视图
[Huawei-aaa]local-user huawei password cipher huawei privilege level 3  //设置用户名密码、用户等级
[Huawei] stelnet server enable    // 打开SSH
[Huawei] ssh user huawei authentication-type password  // 认证模式为密码模式
[Huawei] ssh user huawei service-type all // 允许 用户 使用哪种服务登录 (all | ssh | telnet)

华三交换机

// 创建 RSA和DSA密钥对
[H3C]public-key local create rsa
[H3C]public-key local create dsa

// 用户认证模式以及登录方式  AAA
[H3C]user-interface vty 0 4
[H3C-line-vty0-4]authentication-mode scheme
[H3C-line-vty0-4]protocol inbound ssh
[H3C-line-vty0-4]quit

// 创建 用户 h3c 以及 密码
[H3C]local-user h3c
[H3C-luser-manage-h3c]password simple H3c123456789
[H3C-luser-manage-h3c]service-type ssh
[H3C-luser-manage-h3c]quit

// 开启 ssh 服务
[H3C]ssh user h3c service-type all authentication-type password
[H3C]ssh server enable

还不快抢沙发

添加新评论

Myssl安全认证