Connecting to a server which I have no direct control. Been working for 3 years with no issue. Today receive an error.
The code is simply
$connection = ssh2_connect('data.example.com', 22);
Result on the $connection
line (even before trying to authenticate) is
PHP Warning: ssh2_connect(): Error starting up SSH connection(-5): Unable to exchange encryption keys
I read through previous cases which seem to suggest its about updating libssh. I checked and there are no available updates. All is current based on recommended updates (I believe). PHP Version is 7.0.33 so maybe not so current, but would that impact anything? The client is a AWS Linux instance.
I can connect directly to this server via WinSCP. So either they changed some security protocol or there is something deficient on my client server?
EDIT: I can also connect directly from the client's shell.
Any ideas?