hti 发表于 2018-7-27 07:52:03

华为交换机使用SSH方式远程登陆必要的配置

  #
  aaa
  authentication-scheme default
  authorization-scheme default
  accounting-scheme default
  domain default
  domain default_admin
  local-user *** password cipher ***
  local-user *** privilege level 3
  local-user *** service-type ssh
  undo local-user admin
  #
  stelnet server enable
  ssh user ***
  ssh user *** authentication-type password
  ssh user *** service-type stelnet
  #
  user-interface maximum-vty 15
  user-interface con 0
  authentication-mode password
  set authentication password cipher ***
  idle-timeout 5 0
  user-interface vty 0 4
  authentication-mode aaa
  user privilege level 15
  history-command max-size 20
  idle-timeout 5 0
  screen-length 0
  protocol inbound ssh
  user-interface vty 5 14
  #
  如果用其它端口远程登陆修改SSH方式,会出现原方式无法登陆,新方式也无法登陆。用console连接并管理交换机
  进入
  user-interface vty 0 4
  将以下配置
  protocol inbound ssh
  改为
  protocol inbound all
  再改回
  protocol inbound ssh
  就可以了。
页: [1]
查看完整版本: 华为交换机使用SSH方式远程登陆必要的配置