Skip to content

Instantly share code, notes, and snippets.

View StewAlexander-com's full-sized avatar
😎
I may be slow to respond.

Stew Alexander StewAlexander-com

😎
I may be slow to respond.
View GitHub Profile
@StewAlexander-com
StewAlexander-com / ssh_config
Created May 25, 2022 19:41
How to ssh into older Cisco switches with Ubuntu / Linux
Open /etc/ssh/ssh_config via a Linux editor like vi, vim, nano, ne or etc
Example: #sudo nano /etc/ssh/ssh_config
Copy the following to the top of the ssh_config file (anything with a "*" wildcard in it has to be last):
Host <IP / Host Name>
User <your username>
PubkeyAcceptedAlgorithms +ssh-rsa
HostkeyAlgorithms +ssh-rsa
Ciphers aes128-ctr
KexAlgorithms +diffie-hellman-group1-sha1 #(or whatever the cipher it asks for)