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
* ASACiscoSwitches / HubsSSH / Telnet SoftwareGolang

Avatar of undefined
Last Comment
Damian Gardner

8/22/2022 - Mon
DP230

(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

Craig Beck

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.
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?
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
Craig Beck

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. 
Damian Gardner

ASKER
gotcha. here's the run config...9300.txt
ASKER CERTIFIED SOLUTION
Craig Beck

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Damian Gardner

ASKER
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...
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.