title: Is it possible to upload files using ssh connection?
body: <p>im using a ssh connection to a server, and i would like to know if there ia a command to upload files, like the put on the sftp connection.</p>
  
  <pre><code>include('Net/SSH2.php');
  include('Crypt/RSA.php');
  
  $key = new Crypt_RSA();
  
  $key-&gt;loadKey(file_get_contents('/pathtokey.pem'));
  
  
  $ssh = new Net_SSH2('ec2-xxx-xxx-xxx-xxx.compute-1.amazonaws.com');
  if (!$ssh-&gt;login('user', $key)) {
  exit('Login Failed');
  }
  </code></pre>
  
  <p>thanks a lot</p>