Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Enabling obsolete protocol on SSH ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
destroyedlolo
l33t
l33t


Joined: 17 Jun 2011
Posts: 846
Location: Close to Annecy (France)

PostPosted: Fri Apr 02, 2021 6:51 pm    Post subject: Enabling obsolete protocol on SSH ? Reply with quote

Hello,

I have very very (very) old system I can't upgrade for various raison.

But since last SSH update, I can't connect anymore due to following message :
Code:
Unable to negotiate with 192.168.0.8 port 22: no matching key exchange method found. Their offer: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1


Is it a way to re-enable one of them on my Gentoo system ?

Thanks

Laurent
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Fri Apr 02, 2021 7:06 pm    Post subject: Reply with quote

Hi
Code:

ssh -o KexAlgorithms=+diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1 user@lhost

You can add "host" entries in /etc/ssh/ssh_config,or in ~/.ssh/config like that:
Code:

Host <ip-or-domain>
   KexAlgorithms +diffie-hellman-group1-sha1,algo2,algo3,etc


_________________
:)
Back to top
View user's profile Send private message
destroyedlolo
l33t
l33t


Joined: 17 Jun 2011
Posts: 846
Location: Close to Annecy (France)

PostPosted: Fri Apr 02, 2021 7:43 pm    Post subject: Reply with quote

Hello,

Thanks a lot, I'll do it.

Bye

Laurent
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum