LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-24-2022, 12:13 AM   #1
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,658

Rep: Reputation: 255Reputation: 255Reputation: 255
How to access a SSH server with diffie-hellman-group1-sha1 ?


Hello,

On a running debian machine, I try to access an old PC with SSH.

Code:
pi@debian:~ $ ssh linux@192.168.1.21

Unable to negotiate with 192.168.1.21 port 22: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1

pi@debian:~ $
How to get that ssh working?
 
Old 12-24-2022, 12:18 AM   #2
Xeratul
Senior Member
 
Registered: Jun 2006
Location: UNIX
Distribution: FreeBSD
Posts: 2,658

Original Poster
Rep: Reputation: 255Reputation: 255Reputation: 255
ROOT:

1.) Add this to /etc/ssh/ssh_config

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
Ciphers aes128-cbc

2.) service ssh restart

user:

3.) rm -rf ~/.ssh

4.) ssh ... and it works.
 
Old 12-24-2022, 02:42 AM   #3
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,328
Blog Entries: 3

Rep: Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726Reputation: 3726
Quote:
Originally Posted by Xeratul View Post
4.) ssh ... and it works.
For some definitions of "works". Which distro are you connecting to? There should be a more recent version of OpenSSH server in the backports repository so that you don't have to use insecure methods.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Reconfigure the service to use a unique Diffie-Hellman moduli of 2048 bits or greater. LittleMaster Linux - Security 1 12-27-2017 09:39 AM
LXer: Strengthening Diffie-Hellman in SSH and TLS LXer Syndicated Linux News 0 10-29-2015 05:50 PM
How to check Diffie-Hellman Ciphers and DHE_EXPORT for tomcat gaurav_s Linux - Networking 0 06-26-2015 02:45 PM
Can Diffie Hellman and Digital Signature Algorithm be simulated using NS2? CharanyaJ Linux - Newbie 2 02-14-2012 08:49 AM
SSH server not responding to Diffie-Hellman Key Exchange request message (34) x_gaurav Programming 0 03-16-2009 09:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration