Setup SSH on Cisco Switch
Sometimes, basic configuration are tend to forgot. This post to keep a record of basic configuration for setting up SSH on IOS router/switch.
For older IOS software images, we might also need to add the KexAlgorithms (Key Exchange Algorithms) into your config (~/.ssh/config) file. Create ssh config file if we dont have it yet.
Add the following lines for ssh configuration depending on your platform.
Host [ip_address_R1]
KexAlgorithms +diffie-hellman-group1-sha1,diffie-hellman-group14-sha1
Host [ip_address_R2]
KexAlgorithms +diffie-hellman-group1-sha1,diffie-hellman-group14-sha1
Troubleshooting and verify config.
Thanks!