/**
  * Constructor
  *
  * @param  string  $file
  * @param  string  $host
  * @param  integer $port
  * @param  array   $methods
  * @param  array   $callbacks
  * @param  string  $identity
  */
 public function __construct($file, $host, $port = 22, array $methods = array(), array $callbacks = array(), $identity = null)
 {
     $this->parseSshConfigFile($this->processPath($file));
     $this->identity = is_null($identity) ? self::DEFAULT_SSH_IDENTITY : $identity;
     $this->config = $this->getConfigForHost($host);
     parent::__construct(isset($this->config['hostname']) ? $this->config['hostname'] : $host, isset($this->config['port']) ? $this->config['port'] : $port, $methods, $callbacks);
 }
 /**
  * Constructor
  * @param  string  $file
  * @param  string  $host
  * @param  integer $port
  * @param  array   $methods
  * @param  array   $callbacks
  */
 public function __construct($file, $host, $port = 22, array $methods = array(), array $callbacks = array())
 {
     $this->parseSshConfigFile($this->processPath($file));
     $this->config = $this->getConfigForHost($host);
     parent::__construct(isset($this->config['hostname']) ? $this->config['hostname'] : $host, isset($this->config['port']) ? $this->config['port'] : $port, $methods, $callbacks);
 }