--TEST-- ssh2_connect() Basic connection and pre-authentication --SKIPIF-- --FILE-- 0); } echo "**Negotiation\n"; $mn = ssh2_methods_negotiated($ssh); var_dump(ssh2t_strset($mn['kex'])); var_dump(ssh2t_strset($mn['hostkey'])); foreach(array('client_to_server', 'server_to_client') as $direction) { $mnd = $mn[$direction]; var_dump(ssh2t_strset($mnd['crypt'])); var_dump(ssh2t_strset($mnd['comp'])); var_dump(ssh2t_strset($mnd['mac'])); } --EXPECT-- **Connect bool(true) string(12) "SSH2 Session" **Fingerprint MD5 bool(true) int(32) bool(true) **Fingerprint SHA1 bool(true) int(40) bool(true) **Negotiation bool(true) bool(true) bool(true) bool(true) bool(true) bool(true) bool(true) bool(true)