Hi again, sdcsdc sdcsdc wrote: > I'm not experienced PHP, C, Linux or BSD user
Maybe you can help us anyway. > I can only tell you what I done. Repeat my experiment to see that > exactly is happening. But it will take a lot longer time for someone else to try to repeat it, than for you to do some tests in order to find out more information. > and when I run it gives me this > Warning : ssh2_auth_password() [ function.ssh2-auth-password ]: > Authentication failed for rcbandit using password in /var/www/test.php on > line 8 > > fail: unable to authenticate Right. Please try this with the SSH server in debugging mode on the FreeBSD system. Log in as root on FreeBSD, via SSH will also work. First stop the running SSH server. You can still be logged in even if it is stopped. As root, run the command: /etc/rc.d/sshd stop You might get some kind of confirmation that sshd was in fact stopped. Now try the PHP script again. It should fail to connect. Now, start sshd manually with debugging enabled: /usr/sbin/sshd -ddd The program will run where you logged in, until you stop it. When sshd is running here, try the PHP script one more time. You will get a number of debug messages printed where you started the program. Please email those messages to this list. Now stop the sshd with Ctrl-C. You should get the root prompt back. Start sshd the normal way: /etc/rc.d/sshd start It's always good to verify that you can log in via SSH before you close the root login, but because you are using virtualization you can also very easily just restart the system if something stops working. :) Those debug messages will hopefully be helpful. Thanks! //Peter _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
