Created
May 25, 2022 19:41
-
-
Save StewAlexander-com/a39751f44601b77b36aa13c1fa6342b1 to your computer and use it in GitHub Desktop.
How to ssh into older Cisco switches with Ubuntu / Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
Host <IP / Host Name> | |
User <your username> | |
PubkeyAcceptedAlgorithms +ssh-rsa | |
HostkeyAlgorithms +ssh-rsa | |
Ciphers aes128-ctr | |
KexAlgorithms +diffie-hellman-group14-sha1 #(example of a different cipher) | |
Host 10.2.0.* #Anything with a wildcard, i.e. "*" needs to be last | |
User <your username> | |
PubkeyAcceptedAlgorithms +ssh-rsa | |
HostkeyAlgorithms +ssh-rsa | |
Ciphers aes128-ctr | |
KexAlgorithms +diffie-hellman-group14-sha1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Took ages to figure this out, but doing the above will allow Ubuntu to ssh into old Cisco IOS switches