I have an issue where I can't SSH into to switch due to a connection refused fatal error after a switch rebooted. One of the rsa key that is in the switch that I think is used in the switch is :
Key name: TP-self-signed-1041218253
Key type: RSA KEYS
Storage Device: Synced from active
Usage: General Purpose Key
Key is not exportable.
Key Data:
30820122 300D0609 2A864886 F70D0101 01050003 82010F00 3082010A 02820101
00CFB83D 8CE939A5 CD64154E D15CB09F E2765E44 72F497AD B40A337F 78E8001A
05D744D8 0CDB27F2 2681742F 4A52D3A5 6DE59536 1C2743AD EBB9D293 33D51F95
69D188F1 8134BB4E 05370D64 BC7A53DE 7A8FADFF 5DCFE50B D7649745 E3637402
F8E42510 413AC0CC BA2069A7 78594D7F 74B4FADA 7098C75B A66BD439 3CD3B5AF
967BB604 07B0203F FF0B8244 4D3BF913 F7A53F92 812138BA E57DDCCC 7B6D641F
F40141EB 8C0140E6 F56D2911 C304A295 BF6B1193 B1745E82 439A864D F7B1B6CE
9C066A4D 94736286 53FDAA9E A0C486D4 7DAEFD9B D5F82497 ABBE9044 A23D7C49
89403917 36D3AAA2 3E7D5113 E5F78A78 8D735B90 95BD1CF6 E81D269D B6803CB1
03020301 0001
I do not want to zeroize the keys as there are multiple keys in there but I'm not sure what to do at this point. Should I input the command ip ssh rsa keypair-name xxx
or try to generate new keys? But I heard that there is a process to regenerate keys if you already have active keys in the switch?
sh ip ssh
? If this shows as "Disabled" then maybe keys are corrupted or it never worked(?). To fix "Disabled" generate RSA with a length of at least 768 (but I would recommend 2048).