<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <br>
    <div class="moz-cite-prefix">Le 01/08/2013 09:58, Michael Schnell a
      écrit :<br>
    </div>
    <blockquote cite="mid:51FA152A.5070001@lumino.de" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      <div class="moz-cite-prefix">On 08/01/2013 07:48 AM, Richard Mace
        wrote:<br>
      </div>
      <blockquote
cite="mid:CAK+KT39+4Ggw3twHxK5Sg1KLDd1xUnfYEX4sjAnDQFZ4o87rdg@mail.gmail.com"
        type="cite">
        <div dir="ltr">
          <div class="gmail_default"
            style="font-family:arial,helvetica,sans-serif">I am needing
            to add the ability to my Lazarus application to copy files
            to a linux server.</div>
          <div class="gmail_default"
            style="font-family:arial,helvetica,sans-serif">Assuming that
            my application will be run on Windows, what's the best way
            of copying files to and from a Linux box?</div>
        </div>
      </blockquote>
      Ignoring  the Subject I's just recommend a file sharing protocol
      such as CIFS.<br>
    </blockquote>
    I agree with Michael. On one hand you can configure a SaMBa server
    in the Linux box which then can be accessed like any other windows
    machine using the UNC naming syntax.<br>
    On the other hand  you can use an SSH compliant component anyway.
    Like Indy 10 that I use since a few years. It compiles and runs
    under Lazarus (some minor changes are needed though for a successful
    compilation).<br>
    This method is a little bit more difficult to implement and quite
    tricky but it works.<br>
    I use the traditional pair login/password for identification. The
    SSH Indy component and the Linux box manage themselves the SSH
    encrytion protocol<br>
    <br>
    Antonio.<br>
    <br>
    <blockquote cite="mid:51FA152A.5070001@lumino.de" type="cite"> <br>
      But if you need to use SSH, I do know how this might work (i.e.
      you need to start (e.g.) "cp" on the target via SSH), but I don't
      know any pascal code that uses SSH. <br>
      <br>
      <blockquote
cite="mid:CAK+KT39+4Ggw3twHxK5Sg1KLDd1xUnfYEX4sjAnDQFZ4o87rdg@mail.gmail.com"
        type="cite">
        <div dir="ltr">
          <div class="gmail_default"
            style="font-family:arial,helvetica,sans-serif"> I've heard
            that the pgp command in putty might work, but I was just
            wondering if there was a component for Lazarus that would
            make things easier?</div>
          <br>
        </div>
      </blockquote>
      Putty in fact can do ssh. AFAIK, ssh uses pgp as it's encryption
      algorithm. <br>
      <br>
      -Michael<br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">--
_______________________________________________
Lazarus mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a>
<a class="moz-txt-link-freetext" href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>