From: Radek Krejca

> I am trying connect to freebsd. I have php 5.3.2 installed. I have to
> using public keys, but without succes. Function ssh2_connect throws me
> following error (then I have invalid resource for function
> PHP Warning:  ssh2_connect(): Error starting up SSH connection(-5):
> to exchange encryption keys in /usr/home/radek/pokus.php on line 14


> I got the same error without using methods variable.

Have you tried opening the connection from the command line with OpenSSL
or similar tools? Do you know those credentials will actually work?

Bob McConnell

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to