Link to home
Start Free TrialLog in
Avatar of Damian Gardner
Damian Gardner

asked on

Need help on how to change the SSH username and password on my Cisco 9300 switch and also 5516 ASA firewall

Need help on how to change the SSH username and password on my Cisco 9300 switch and also 5516 ASA firewall .  The Telnet and Enable passwords are easy - but the secure shell is throwing me for a loop and i'm not finding much that is making sense to me quickly online.  thought I'd go to the experts!

Thanks
Avatar of DP230
DP230
Flag of United Kingdom of Great Britain and Northern Ireland image

(config)# username cisco secret password_etc

Open in new window

(config)# hostname switch
(config)# ip domain-name your_domain.com

Open in new window

(config)# crypto key generate rsa

Open in new window

(config)# line vty 0 4 
(config-line)# transport input ssh 
(config-line)# login local

Open in new window

You don't need to change the hostname/domain and regenerate the SSH key to change the SSH user/pass. Telnet and SSH will use the same credentials.

Post the config for your devices (omitting any sensitive info like IP addresses, identifying names, etc.) and we can tell you exactly what to do. There's a couple of ways depending on whether you're using aaa new-model or not.
Avatar of Damian Gardner
Damian Gardner

ASKER

Thanks for your help.  so currently on my 9300 switch, it has a password set for "ABCDEF" (not the real password - just representing the password).  If I want to change it to "ABCDEF123" - and if the Telnet password and SSH password are the same - why doesn't it change when I change the Telnet password?  

This is how I changed the Telnet:

#config t
#line vty 0 4
#password ABCDEF123
#exit

shouldn't that change the SSH password then?
The telnet and SSH passwords are one and the same. The transport protocol is irrelevant.

If you can telnet but not ssh it's probably because there's no username configured, or the switch isn't configured to use one, hence asking for the running config. 
gotcha. here's the run config...9300.txt
ASKER CERTIFIED SOLUTION
Avatar of Craig Beck
Craig Beck
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
very sorry i forgot to come back on this one guys.  I appreciate your help, and your suggestions worked.  i'll give the points out...