public function configFile($file = '~/.ssh/config') { $this->config->setAuthenticationMethod(Configuration::AUTH_BY_CONFIG); $this->config->setConfigFile($file); return $this; }