5.4. Login & Password

简介:

例 5.1. 2811

更改路由器名、密码

			
Router(config)#
Router(config)#enable password cisco		enable password和enable secret命令可以修改特权模式的密码。
Router(config)#enable secret cisco			进入line console局部配置模式下,修改console登录密码;进入line vty局部配置模式,修改telnet登录的密码。login命令指出需要登录,修改密码的命令都是password。
			
			

console

Router(config)#line console 0
Router(config-line)#login
Router(config-line)#password cisco
Router(config-line)#exit			
			

telnet

			
Router(config)#line vty 0 4
Router(config-line)#login
Router(config-line)#password cisco			
			
			


例 5.2. 2911

2911(config)#crypto key generate rsa
The name for the keys will be: 2911.cisco.com
Choose the size of the key modulus in the range of 360 to 4096 for your
  General Purpose Keys. Choosing a key modulus greater than 512 may take
  a few minutes.

How many bits in the modulus [512]: 2048
% Generating 2048 bit RSA keys, keys will be non-exportable...
[OK] (elapsed time was 13 seconds)
			
ip access-list standard login
 permit 192.168.50.0 0.0.0.128
!
			
line vty 0 4
 access-class login in
 privilege level 15
 login local
 transport input telnet ssh			
			
			
username cisco privilege 15 secret your_password	#超级用户,不需要enable
username mgmt secret your_password
			
			





原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

目录
相关文章
|
开发工具 git
Incorrect username or password (access token)
Incorrect username or password (access token)
126 0
Incorrect username or password (access token)
|
NoSQL Redis 数据安全/隐私保护
AUTH password
为redis服务请求设置一个密码。redis可以设置在客户端执行commands请求前需要通过密码验证。通过修改配置文件的requirepass就可以设置密码。 如果密码与配置文件里面设置的密码一致,服务端就会发会一个OK的状态码,接受客户端发送其他的请求命令,否则服务端会返回一个错误码,客户端需要尝试使用新的密码来进行连接。
1107 0
|
索引
1035. Password (20)
To prepare for PAT, the judge sometimes has to generate random passwords for the users.
956 0
|
数据安全/隐私保护 网络架构 网络安全
|
网络安全
|
网络安全