ssh error invalid digest

Tom Goodman <[email protected]> Sun, 28 Jun 2026 18:18:42 -0400
Newsgroups gmane.comp.encryption.openssl.user
Message-ID <[email protected]>
Hello OpenSSL,

Can openssl 3.5.71-1 be coerced to connect to an old ssh server?

I am seeing this problem on cygwin, but it looks like an openssl issue, 
not a cygwin issue.

After updating my cygwin environment to their current recommended 
version of openssl, 3.5.71-1, I am seeing this error:

     tgoodman@tester04 ~
     $ ssh -o HostKeyAlgorithms=+ssh-rsa notsure
     ssh_dispatch_run_fatal: Connection to 192.168.11.3 port 22: error 
in libcrypto: invalid digest

The destination host is running Ubuntu 10.04.4 LTS. (Yes, it is 
incredibly old, but this is an interior machine and it still works, so 
no one wants to touch it.)

     tgoodman@notsure:~$ openssl version
     OpenSSL 0.9.8k 25 Mar 2009

     tgoodman@notsure:~$ ssh -version
     OpenSSH_5.3p1 Debian-3ubuntu7.1, OpenSSL 0.9.8k 25 Mar 2009

Several years ago I added the HostKeyAlgorithms option that was needed 
to support the old crypto. (Actually added to ~/.ssh/config, but for 
debugging I've temporarily deleted config so everything is on the 
command line.)

Claude recommended:

     tgoodman@tester04 ~
     $ ssh -o HostKeyAlgorithms=+ssh-rsa \
         -o PubkeyAcceptedKeyTypes=+ssh-rsa \
         -o 
KexAlgorithms=+diffie-hellman-group14-sha1,diffie-hellman-group1-sha1 \
         notsure
     ssh_dispatch_run_fatal: Connection to 192.168.11.3 port 22: error 
in libcrypto: invalid digest

Since that advice came from Claude, I did not have high hopes. As 
expected, that did not fix the issue.

The unsatisfying 'fix' I have implemented is to downgrade the openssl 
and libssl3 packages from 3.5.71-1 to the older 3.0.19-1, but that is 
not a good, long term solution.

So my question:

Can openssl 3.5.71-1 be coerced to make the connection to this old ssh 
server? If so, what options?

-- 
Tom Goodman
TomGoodman-C6I/[email protected]
https://fbe-inc.com/
FBE Associates, Inc.

-- 
You received this message because you are subscribed to the Google Groups "openssl-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openssl-users+unsubscribe-MCmKBN63+Bmbup2nOX2J7Q@public.gmane.org
To view this discussion visit https://groups.google.com/a/openssl.org/d/msgid/openssl-users/367ac1d3-3185-44af-abde-6f4686caef19%40mhproez.com.