Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 461
  • Last Modified:

Change Cisco 2960 login account

Hi,

I have several Cisco 2960 switches, which i can access remotely. Now I need to change the login details and the enable password.

Can it be done remotely, or do i have to connect via console port? What are the command to do this?

Thanks!
0
SvenIA
Asked:
SvenIA
2 Solutions
 
Paul 1Commented:
to change the enable password

Router>enable
Router#configure terminal
Router(config)#enable password mypassword

press "CTRL-Z"
write
0
 
Don JohnstonInstructorCommented:
Can it be done remotely, or do i have to connect via console port? What are the command to do this?
As long as you have telnet, ssh or SDM access from your remote location, you would use the same commands as if you were local.
0
 
MiftaulCommented:
Can it be done remotely, or do i have to connect via console port?
Definitely you can. You can not rename an account name at one go. First create a new user account remotely. Then logon using that account and remove the previous account.

What are the command to do this?
To create new account UserA to be used with telnet/SSH,
R1(Config)#username UserA privilege 15 secret UserAPassword
R1(Config)#line vty 0 4
R1(Config-line)#login local
R1(Config-line)#transport input ssh telnet
R1(Config-line)# exec-timeout 5 0
R1(Config-line)#exit

Open in new window

To change enable password
R1(Config)#enable secret MyPassword
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
InfamusCommented:
Also, I would open another SSH session to test the new login before exiting the current session just to be safe.
0
 
Craig BeckCommented:
Really it depends how admin authentication is configured on the switches, but the enable password/secret can be changed just by using the command posted by Paul1.

If you're using line passwords:

line vty 0 4
 password <password>

Open in new window


If you're using local authentication:

username <username> privilege <privilege-level> password <password>

Open in new window

0
 
SvenIAAuthor Commented:
Thanks guys. With your information i changed the local and the enable password;

Local login: username local privilege 2 secret <password>

Enable password: enable secret <password>
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now