Bindings to the libssh2 library which provide access to resources (shell, remote exec, tunneling, file transfer) on a remote machine using a secure cryptographic transport. https://secure.php.net/manual/en/intro.ssh2.php
Проблема была в модуле ssh2.so для php. Не проверялся результат libssh2_userauth_list(), который может возвращать NULL, этот NULL потом неглядя передавался в strstr() со всеми вытекающими.