zoukankan      html  css  js  c++  java
  • H3C-SW的密码管理

    H3C-SW的密码管理

    我不是第一次写类似的记录了,但是好长时间不用,都忘记了,再梳理梳理吧;

    关于aux

    华三交换机和华为交换机类似,都存在多个虚拟终端,LINUX系统也是这样,交换机的底层就是LINUX系统。

    # 查看一个交换机当前的终端 ,发现第一个是aux,余下的是vty0到vty63
    <JN-JR-01>dis user-interface 
      Idx  Type     Tx/Rx      Modem Auth  Int          Location
      0    AUX 0    9600       -     P     -            1/0
    + 10   VTY 0               -     P     -            1/0
      11   VTY 1               -     P     -            1/0
      12   VTY 2               -     P     -            1/0
      中间省略……
      72   VTY 62              -     P     -            1/0
      73   VTY 63              -     P     -            1/0
    
      +    : Line is active.
      F    : Line is active and in async mode.
      Idx  : Absolute index of line.
      Type : Type and relative index of line.
      Auth : Login authentication mode.
      Int  : Physical port of the line.
      A    : Authentication use AAA.
      N    : No authentication is required.
      P    : Password authentication.
    

    通过console线登录的是aux终端,而通过telnet通过就是vty了,当前我是通过telnet登录的,所以vty0左边有一个加号,表示当前活动的。

    从上文当中应该可以看出,console和vty不是一个终端 ,其登录用户和密码也可以单独设置。

    # 更改console登录的密码
    [JN-JR-01]user-interface aux 0
    [JN-JR-01-line-aux0]authentication-mode password  #即直接输入密码的方式登录,不用输入用户名
    [JN-JR-01-line-aux0]set authentication password simple 123  #这里面设置密码,自动加密为密文
    

    关于telnet

    //启动telnet服务
    telnet server enable
    
    # 更改vty 0 4登录的密码
    [JN-JR-01]user-interface vty 0 4
    [JN-JR-01-line-vty0-4]authentication-mode password
    [JN-JR-01-line-vty0-4]set authentication password simple 123
    

    快速配置

    sys
    int vlan 4
    ip add 192.168.0.80 22
    qu
    user-interface aux 0
    authentication-mode password
    set authentication password simple 123
    quit
    user-interface vty 0 4
    authentication-mode password
    set authentication password simple 123
    quit
    quit
    save for
    
  • 相关阅读:
    WQS二分
    虚树
    洛谷集训队题单Part1
    动态点分治
    点分治
    最小乘积模型
    线段树分治
    分层图最短路
    学长学姐们的测试-2
    线性dp
  • 原文地址:https://www.cnblogs.com/yizhangheka/p/13187047.html
Copyright © 2011-2022 走看看