zoukankan      html  css  js  c++  java
  • cisco 为每个单独的人员设置不同的用户名和密码

    分类: 系统运维

    Router1#configure terminal
    Enter configuration commands, one per line. End with CNTL/Z.
    Router1(config)#username neoshi password ioscookbook (username weak nopassword)
    Router1(config)#aaa new-model
    Router1(config)#aaa authentication login local_auth local
    Router1(config)#line vty 0 4
    Router1(config-line)#login authentication local_auth
    Router1(config-line)#exit
    Router1(config)#end
     
    ###################################################################################
     
    Router1#
    注释 设置单独的用户名和密码的好处就不用多说了,这里只提一个就是在日志中会显示谁做了修
    改,比如%SYS-5-RELOAD: Reload requested by kdooley on vty0 (172.25.1.1).另外在username 这个命令
    里面还有一个autocommand的选项,实现登录以后自动执行某个特定的命令的作用,下面的例子就
    是一个用户名为run 无密码,登录以后显示完端口状态就自动退出的例子,很好用吧
    Router1#configure terminal
    Enter configuration commands, one per line. End with CNTL/Z.
    Router1(config)#aaa new-model
    Router1(config)#aaa authentication login default local
    Router1(config)#aaa authorization exec default local
    Router1(config)#username run nopassword noescape
    Router1(config)#username run autocommand show ip interface brief
    Router1(config)#end
  • 相关阅读:
    没有精神分裂的测试不是一个好家长
    防火墙中配置开放 8080端口--续上一篇
    rocketMQ(一)基础环境
    如何做一个对账系统
    通用对账系统介绍与设计(上)
    pdf转图片
    虚拟机加载类机制
    jenkins
    zookeeper和dubbo
    正则日常积累
  • 原文地址:https://www.cnblogs.com/zhengah/p/4736450.html
Copyright © 2011-2022 走看看