• H3C交换机如何配置SSH服务


    环境:

    H3C S6520

    version 7.1.070, Release 6530P02

    问题描述:

    H3C交换机如何配置SSH服务

    组网需求

    配置Host(SSH客户端)与Switch建立本地连接。Host采用SSH协议登录到Switch上,以保证数据信息交换的安全。SSH用户采用的认证方式为password认证,用户名和密码保存在本地设备上

    解决方案:

    <S6520>sy
    System View: return to User View with Ctrl+Z.
    [S6520] public-key local create rsa
    The range of public key modulus is (512 ~ 4096). 
    If the key modulus is greater than 512, it will take a few minutes.
    Press CTRL+C to abort.
    Input the modulus length [default = 1024]:1024
    Generating Keys...
    .
    Create the key pair successfully.
    [S6520]public-key local create dsa
    The range of public key modulus is (512 ~ 2048). 
    If the key modulus is greater than 512, it will take a few minutes.
    Press CTRL+C to abort.
    Input the modulus length [default = 1024]:1024
    Generating Keys...
    ..
    Create the key pair successfully.
    [S6520]ssh server enable
    [S6520]sftp server enable(可选)
    [S6520]line vty 0 4
    [S6520-line-vty0-4]authentication-mode scheme
    [S6520-line-vty0-4]protocol inbound ssh
    [S6520-line-vty0-4]quit
    [S6520]local-user cs class manage
    New local user added.
    [S6520-luser-manage-st]password simple 123
    The password is too short. It must contain a minimum of 10 characters.
    [S6520-luser-manage-st]password simple 12345678
    [S6520-luser-manage-st]service-type ssh
    [S6520-luser-manage-st]authorization-attribute user-role network-admin
    [S6520-luser-manage-st]quit
    
    
    最后保存一下
    <S6520>sa     
    The current configuration will be written to the device. Are you sure? [Y/N]:y
    Please input the file name(*.cfg)[flash:/startup.cfg]
    (To leave the existing filename unchanged, press the enter key):
    flash:/startup.cfg exists, overwrite? [Y/N]:y
    Validating file. Please wait...
    Saved the current configuration to mainboard device successfully.
    
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 8
    • 9
    • 10
    • 11
    • 12
    • 13
    • 14
    • 15
    • 16
    • 17
    • 18
    • 19
    • 20
    • 21
    • 22
    • 23
    • 24
    • 25
    • 26
    • 27
    • 28
    • 29
    • 30
    • 31
    • 32
    • 33
    • 34
    • 35
    • 36
    • 37
    • 38
    • 39
    • 40
    • 41
    • 42
    • 43

    使用Xshell连接测试成功
    在这里插入图片描述
    开启web服务

    [S6520]ip https enable 
    
    [S6520]local-user cs
    
    [S6520-luser-manage-cs]service-type https
    
    • 1
    • 2
    • 3
    • 4
    • 5
  • 相关阅读:
    2024级199管理类联考之数学基础(上篇)
    Linux学习第15天:Linux设备树(二):枝繁叶茂见晴天
    力扣leetcode 698. 划分为k个相等的子集
    Dry+Bean+Dataset R语言数据分析,报告英文
    如何在中国大陆三大运营商申请公网IPV4地址
    React中setState方法详细讲解
    认真学习MySQL中的角色权限控制
    K8S集群中Coredns域名解析故障排查思路
    快速入门基础控制台API
    Telerik UI for .NET MAUI广泛的 UI 套件
  • 原文地址:https://blog.csdn.net/weixin_42672685/article/details/133297372