I was trying to write a PHP script to manage a RouterOS box, and I hit a problem that PHP SSH can't seem to connect to RouterOS, though it can connect to other SSH servers.
I've narrowed the problem down as far as discovering it's nothing to do with PHP - libssh2 can't connect to RouterOS, though it can connect to a linux box running openssh-server.
I've written a small test using libssh2 that demonstrates this:
http://gist.github.com/614962
If you give it the IP of a linux server it works, if you give it a Mikrotik (in my case an RB750G running 3.31) it gives
"Unable to exchange encryption keys"
Does anyone have any suggestions what might be causing this? Is libssh2 missing support for the necessary protocol?