function ssh2_connect($host, $port = 22, $methods = array(), $callbacks = array()) { $session = new Net_SFTP($host, $port); $session->enableQuietMode(); return $session; }