Working on a project that was built using ssh2_connect to download files from a server. The production server the project is running on works, but getting ssh2_connect to work on my Mac running OSX 10.8 is proving to be problematic.
The following command:
ssh2_connect("myhost", 22);
Produces the following error:
Error: ssh2_connect(): Error starting up SSH connection(-4): Invalid MAC received
I can connect from the command line, so I know it isn't a system wide SSH issue. Does anyone know how to debug or solve this problem? Thanks in advance and may your children be blessed with large brains and social skills :)
UPDATE: Solution posted below