[Lazarus] SSH

Antonio Fortuny a.fortuny at sitasoftware.lu
Thu Aug 1 10:15:33 CEST 2013

Le 01/08/2013 09:58, Michael Schnell a écrit :
> On 08/01/2013 07:48 AM, Richard Mace wrote:
>> I am needing to add the ability to my Lazarus application to copy 
>> files to a linux server.
>> Assuming that my application will be run on Windows, what's the best 
>> way of copying files to and from a Linux box?
> Ignoring  the Subject I's just recommend a file sharing protocol such 
> as CIFS.
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.
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).
This method is a little bit more difficult to implement and quite tricky 
but it works.
I use the traditional pair login/password for identification. The SSH 
Indy component and the Linux box manage themselves the SSH encrytion 


> 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.
>> 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?
> Putty in fact can do ssh. AFAIK, ssh uses pgp as it's encryption 
> algorithm.
> -Michael
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20130801/ad16ff97/attachment-0003.html>

More information about the Lazarus mailing list