Posts Tagged ‘password’

Cisco Catalyst Password Reset

October 23, 2014 Leave a comment

In the event that you forgot any remote login password, there is no way to recover the password but there is away to change the password and retail all the configuration.

1) Put the switch in ROMmon state.
2) Initialize the switch with command flash_init
3) Rename the flash:config.text file to flash:config.text.renamed
4) Boot the switch.
5) After rebooting, the switch is back to factory setting, copy the renamed config file to the running config.
6) Amend the remote password, save and reload.

Categories: Cisco, Switch Tags: , ,

SSH configuration without radius for Cisco switch

February 1, 2010 Leave a comment

Assuming that your switch IOS support SSH.

Lets go thru on the basic configuration for SSH:

switch(config)# hostname [enter a name for your switch]

switch(config)# ip domain-name [domainname]

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

How many bits in the modulus [512]: 1024 (use 1024)

switch(config)# aaa new-model
switch(config)# aaa authentication login ssh local
switch(config)# aaa authentication login telnet line

switch(config)# ip ssh version 2
switch(config)# ip ssh time-out 60
switch(config)# ip ssh authentication-retries 3

Now that we are done with basic SSH setting, lets configure SSH login with username/password and telnet with line login:

switch(config)# username admin password password
switch(config)# line vty 5 15
switch(config-line)# login authentication ssh
switch(config-line)# transport input ssh

switch(config)# line vty 0 4
switch(config-line)# login authentication telnet
switch(config-line)# transport input telnet

With this, we are done for SSH login for Cisco switch.