title: cannot connect to ftp.*****.com:22 with phpseclib
body: <p>I am new to phpseclib and I am facing the same issue as this 
  <a href="https://stackoverflow.com/questions/31363709/why-does-sftp-via-php-fail-but-succeeds-in-filezilla-on-my-windows-8-1-machine">old Stack Overflow post</a>.</p>
  
  <pre><code>&lt;?php
  set_include_path('/home/eibahhxo/public_html/EibaMed/phpseclib');
  //echo get_include_path();
  ini_set('display_errors', 'On'); ini_set('html_errors', 0); error_reporting(-1);
  include(get_include_path().'/Net/SFTP.php');
  
  $sftp = new Net_SFTP('ftp.*****.com',22);
  if (!$sftp-&gt;login('username', 'password')) { //if you can't log on...
  print_r($sftp-&gt;getSFTPErrors());
     exit('sftp Login Failed');
  }
  
  $output = $sftp-&gt;put('/inbound/00017', '/00017');
  ?&gt;
  </code></pre>
  
  <p>While making this code, it throws this following error</p>
  
  <blockquote>
    <p>Notice: Cannot connect to ftp.*****.com:22. Error 110. Connection timed out in /home/eibahhxo/public_html/EibaMed/phpseclib/Net/SSH2.php on line 1046 Array ( ) sftp Login Failed</p>
  </blockquote>
  
  <p>How can I resolve this?</p>