Re: [PHP] How to implement Authentication of UNIX users?

2011-06-27 Thread vikash . iitb
This may help: http://php.net/manual/en/book.ssh2.php

Thanks,
Vikash Kumar
--
http://vika.sh


On 27 June 2011 21:07, With No Name withnon...@tdwave.net wrote:

 Hello,

 I try to code a Webinterface to access my Server @home which has a
 couple of UNIX users.

 However, I like to have only one website where users must go to whatch
 the content of there Folders, which mean, I need a maping which is not
 the problem but how must I make the Login/Passwd process, that I get
 the right users ${HOME} and can work on it?

 I have found one suggestion in the php-general archive, but this is a
 very huge monster I do not want to use (40 MByte only to authentcate?)

 Thanks


 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] How to implement Authentication of UNIX users?

2011-06-27 Thread With No Name
On Mon, June 27, 2011 5:41 pm, vikash.i...@gmail.com wrote:
 This may help: http://php.net/manual/en/book.ssh2.php

Unfortunately not, I have only one server on my DSL and using
ssh on the same host has a poor performance.  I have tried it
already and each download or directory change takes ages...

SSH need arround 2-7 seconds to respond to a new connect.

Thanks


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] How to implement Authentication of UNIX users?

2011-06-27 Thread Stuart Dallas
On Mon, Jun 27, 2011 at 5:27 PM, With No Name withnon...@tdwave.net wrote:

 SSH need arround 2-7 seconds to respond to a new connect.


Not PHP-related, but you might want to try adding UseDNS no to your
sshd_config file on the server. SSH connection delays are commonly caused by
SSHd doing an rDNS lookup for a non-existant record. Turn that off and you
might see an improvement in connect speed.

-Stuart

-- 
Stuart Dallas
3ft9 Ltd
http://3ft9.com/