In SSH2.php:1477 it says: if (is_object($password) && strtolower(get_class($password)) == 'crypt_rsa') The class name is now longer when using namespaces. The correct line reads: if (is_object($password) && stristr(get_class($password), 'crypt_rsa'))