cancel
Showing results for 
Search instead for 
Did you mean: 
cancel

Developer Sustainability Week Events

Build for Better Code Challenge

Cisco U. Spotlight Registration


>> View previously featured conversations <<

mikejensen83
Level 1
Level 1
Status: New

Hello,

I am trying to SSH to always on IOS XE devices in the DevNet sandbox with Ubuntu Linux as I try to learn Python.

I receive the following error when I try and connect to any of them:

tiate with 131.226.217.149 port 22: no matching key exchange method found. Their offer: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1

I have editing the ssh_config file in /etc/ssh/ssh_config to add:

KexAlgorithms diffie-hellman-group1-sha1,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1
Ciphers 3des-cbc,blowfish-cbc,aes128-cbc,aes128-ctr,aes256-ctr

but I can't no matter what I do ssh_config is not editable.

Any help is greatly appreciated as I am kind of at a standstill in my learning until I get this resolved.  Thank you.

 

5 Comments
Marcel Zehnder
Spotlight
Spotlight

Try to edit ~/.ssh/config, instead of /etc/ssh/ssh_config:

echo KexAlgorithms=+diffie-hellman-group14-sha1 >> ~/.ssh/config

HTH

mikejensen83
Level 1
Level 1

Hello,

I ran echo KexAlgorithms=+diffie-hellman-group14-sha1 >> ~/.ssh/config and this is the response I get now on a SSH attempt:

ssh developer@sandbox-iosxe-recomm-1.cisco.com
Unable to negotiate with 131.226.217.149 port 22: no matching host key type found. Their offer: ssh-rsa

I am thinking I need to generate new host keys but have been unsuccessful so far.

 

I had this problem, instead i use the other one, same username/password.

ssh developer@sandbox-iosxe-latest-1.cisco.com
(developer@sandbox-iosxe-latest-1.cisco.com) Password:

"Hello there! Hoping you are having a great day
... Welcome to 'csr1000v-1',
 your favorite CISCO.IOS.IOS Sandbox"


csr1000v-1#

 

SergiokU
Level 1
Level 1
Thanks Buddy, and what password did you use to connect?

@SergiokU the username and password provided in the sandbox.

Hope this helps.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Recently Completed Ideas