-
Notifications
You must be signed in to change notification settings - Fork 435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can not SSH to a router or switch in to GNS3 #3573
Comments
it is much easier to properly configure the remote and local, then it is to troubleshoot the problem, i.e. copy and paste someone else's configuration. |
This is NOT an issue of GNS3. This is caused by the ancient implementation of SSH in the router, that is by default no longer supported by the SSH in the desktop OS, because these old cipher algorithms are no longer secure. But the SSH on the desktop OS can be configured to support these old algorithms, so you can connect to the router. Here a log on my system:
This simply means, that the SSH partner, my cisco IOSv router, supports only the key exchange methods diffie-hellman-group-exchange-sha1 and diffie-hellman-group14-sha1, which were not used by my linux host. So I have to add an option to my host ssh to support one of these key exchange methods. I choose the first one, diffie-hellman-group-exchange-sha1.
This time the key exchange doesn't issue an error, it seems to work. But the host key type is not compatible, the router expects ssh-rsa. So I will add another option to allow that.
This time the connection works. But adding these options is unconvenient, I suggest to add these options to a configuration file. On Linux there is the global configuration
Now I can connect to the router without specifying these options on the command line:
|
I cant SSH into GNS3 with this ERROR
By the way I use Shell and edit sshd_config & sshconfig in etc directory but the problem until existed!!!
Unable to negotiate with 192.168.149.2 port 22: no matching key exchange method found. Their offer: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
The text was updated successfully, but these errors were encountered: