■ Use to allow you to delete all passwords and secrets from the console without
being physically present at the router.
■ When executed, this command changes the behavior of the erase secrets
command, which will not take any parameters and will not be available through
a vty session.
■ Example
host1(config)#service unattended-password-recovery
■ Use the no version to revert erase secrets to factory default settings.
■ See service unattended-password-recovery.
Setting a Console Password
By default, there is no console password. To set a console password:
1. Make sure that you know the enable password for the system.
If you need to reset the enable password, see “Privilege Levels” on page 421.
2. Access Privileged Exec mode, and enter the enable password if prompted.
3. Access Global Configuration mode.
4. Access Line Configuration mode.
host1(config)#line console 0
5. Enable password checking at login.
host1(config-line)#login
6. Specify a password.
host1(config-line)#password 7 dq]XG`,%N"SS7d}o)_?Y
line
■ Use to specify the vty lines or the console.
■ Example
host1(config)#line vty 1 4
■ Use the no version to remove a vty line or a range of lines from your
configuration; users will not be able to run Telnet, SSH, or FTP to lines that you
remove. When you remove a vty line, the system removes all lines above that
line. For example, no line vty 6 causes the system to remove lines 6 through
29. You cannot remove lines 0 through 4.
■ See line.
login
424 ■ Setting and Erasing Passwords
JUNOSe 11.1.x System Basics Configuration Guide