Example #1
0
 private function openConnection(Config $config)
 {
     $connection = ssh2_connect($config->getIpAddress(), $config->getPortNumber());
     if ($connection === false) {
         throw new ConnectionFailed('ZyXEL could not be reached');
     }
     return $connection;
 }