RE: [PHP] Problem with ssh2_connect

2010-06-24 Thread Radek Krejča
Hi, new symptoms... So, I have following: 1. created rsa keys - tested over ssh command - on remote server is public key renamed to authorized_keys, on local machine i have both keys 2. rights on local machine: -r 1 radek wheel 1675 23 led 2007 radek -r 1 radek wheel

RE: [PHP] Problem with ssh2_connect - finished

2010-06-24 Thread Radek Krejča
Hi, so I have (hope) finished. There is problem with rsa keys in function ssh2_connect (probably bug, I dont see any problem on my side), so I created two pairs - rsa and dsa. rsa method isnt working, but dsa method without problems. Its little complication, because I have everwhere rsa keys,

[PHP] Problem with ssh2_connect

2010-06-23 Thread Radek Krejča
Hello, I am trying connect to freebsd. I have php 5.3.2 installed. I have to connect using public keys, but without succes. Function ssh2_connect throws me following error (then I have invalid resource for function ssh2_auth_pubkey_file)... PHP Warning: ssh2_connect(): Error starting up SSH

Re: [PHP] Problem with ssh2_connect

2010-06-23 Thread Daniel P. Brown
2010/6/23 Radek Krejča radek.kre...@starnet.cz: PHP Warning:  ssh2_connect(): Error starting up SSH connection(-5): Unable to exchange encryption keys in /usr/home/radek/pokus.php on line 14 Make sure that the key file exists by that name in the location you're

RE: [PHP] Problem with ssh2_connect

2010-06-23 Thread Radek Krejča
Make sure that the key file exists by that name in the location you're specifying (hint: use a full path). it is the right key for that server. the permissions on the file are very strict (chmod 0400 ssh-rsa). I got error message immediately after

Re: [PHP] Problem with ssh2_connect

2010-06-23 Thread Daniel P. Brown
2010/6/23 Radek Krejča radek.kre...@starnet.cz:    Make sure that         the key file exists by that name in the location you're specifying (hint: use a full path).         it is the right key for that server.         the permissions on the file are very strict (chmod 0400

RE: [PHP] Problem with ssh2_connect

2010-06-23 Thread Radek Krejča
Make sure that the key file exists by that name in the location you're specifying (hint: use a full path). Its in ssh2_auth_public..., yes, I am using full path there. it is the right key for that server. Yes, I use it with ssh command from line on the same

Re: [PHP] Problem with ssh2_connect

2010-06-23 Thread Brandon Rampersad
Do you have lexneter installed. I think that could be the problem. 2010/6/23 Radek Krejča radek.kre...@starnet.cz Make sure that the key file exists by that name in the location you're specifying (hint: use a full path). Its in ssh2_auth_public..., yes, I am using

RE: [PHP] Problem with ssh2_connect

2010-06-23 Thread Radek Krejča
Do you have lexneter installed. I think that could be the problem. 2010/6/23 Radek Krejča radek.kre...@starnet.cz    Make sure that What is lexneter please? Radek -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php