• H3C 交换机配置SSH


    一.设备作为 SSH 服务器端设置


    # 生成 RSA 密钥对。
    system-view // 进入系统视图
    System View: return to User View with Ctrl+Z.
    [H3C]public-key local create rsa // 生成 RSA 密钥对
    The range of public key size is (512 ~ 2048).
    NOTES: If the key modulus is greater than 512,
    It will take a few minutes.
    Press CTRL+C to abort.
    Input the bits of the modulus[default = 1024]:
    Generating Keys...
    ++++++++++++++++++++++++++++++++++++++
    +++++++++++
    +++++++++++++
    +++

    # 生成 DSA 密钥对。
    [H3C]public-key local create dsa // 生成 DSA 密钥对
    The range of public key size is (512 ~ 2048).
    NOTES: If the key modulus is greater than 512,
    It will take a few minutes.
    Press CTRL+C to abort.
    Input the bits of the modulus[default = 1024]:
    Generating Keys...

    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    +++
    +++++++++++++++++++++++++++++++*+++++++++++++

    二.启动 SSH 服务器。


    [H3C]ssh server enable // 启动 SSH 服务器
    Info: Enable SSH server.


    三.设置 SSH 客户端登录用户界面的认证方式为 scheme 方式。


    [H3C]line vty 0 4 // 进入 VTY 0 ~ 4 用户界面视图
    [H3C-line-vty0-4]authentication-mode scheme // 认证方式为 scheme 用户名 + 密码的
    方式
    # 设置 Switch 上远程用户登录协议为 SSH。
    [H3C-line-vty0-4]protocol inbound ssh // 设置远程用户登录协议为 SSH
    [H3C-line-vty0-4]quit // 退出当前视图


    四.创建本地用户,密码,并设置用户访问的命令级别为 network-admin。


    [H3C]local-user ABC// 创建本地用户 ABC
    [H3C-luser-ABC]password simple 123456 // 密码为 123456
    [H3C-luser-ABC]service-type ssh // 服务类型为 ssh
    [H3C-luser-ABC]authorization-attribute user-role network-admin // 权
    限级别为管理员权限
    [H3C-luser-ABC]quit // 退出当前视图


    五.保存配置


    [H3C]save force // 保存配置
     

    【完】

  • 相关阅读:
    Python 程序的输出 | 第十一套(异常处理)
    强者互帮,弱者互撕!
    前端web实现(@、At、艾特)选人或引用数据
    事务+事务并发+事务隔离级别【Interview Question】
    二进制文件可视化(二)
    Spring Cloud Gateway系列【5】GatewayFilter网关过滤器详解
    Wampserver64
    说出几条 Java 中方法重载的最佳实践
    vue/react/node项目通过eslint检查语法规范
    (JAVA)[COCI2006-2007#2] ABC
  • 原文地址:https://blog.csdn.net/sj349781478/article/details/127712098