Greetings!
We would need to know a few things to assist with troubleshooting:
- What specific symptoms are you seeing — is the switch refusing SSH connections entirely, or are you seeing authentication failures?
- Was SSH working at some point, and now is not?
- Do you have a Management VLAN assigned, and is the SSH client attached to that VLAN with an IP address in the same subnet as the switch Management VLAN IP?
- Are there any log messages on the switch ('show logging -r') or your SSH client indicating a possible cause (such as a cipher mismatch)?
- What software version are you running on the switch in question?
One thing you can try is enabling SSH debug logging on the switch, which would capture info that could help with troubleshooting. In your serial console session, run the following commands:
switch# debug destination session
switch# debug security ssh verbose
Once debug logging is enabled, try to open an SSH session to the switch, and watch for any debug messages to be printed to the open console session. (If you don't see any messages in the console and debug logging is enabled, it's possible your SSH station does not have full connectivity to the switch and this would need to be investigated as a separate issue.) Once you've captured debug info, you can turn debug logging off:
switch# no debug destination session
switch# no debug security ssh