华为交换机配置SSH登陆

  1. 配置aaa:

    1
    2
    3
    4
    
    aaa
    local-user [name] password irreversible-cipher [密码]
    local-user [name] privilege level [1-15]
    local-user [name] service-type ssh
    
  2. 配置ssh

    1
    2
    3
    
    ssh user [name]
    ssh user [name] authentication-type password
    ssh user [name] service-type stelnet
    
  3. 开启stelnet功能

    1
    
    stelnet server enable
    
  4. 生成秘钥

    1
    
    rsa local-key-pair create
    
  5. 配置vty

    1
    2
    3
    
    user-interface vty 0 4
    authentication-mode aaa
    protocol inbound ssh