[Lazarus] SSH

Richard Mace richard.mace at gmail.com
Thu Aug 1 17:20:33 CEST 2013


> 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.
> Why? SSH/SCP works much better/more securely if accessing servers across
> the internet. No need to mess with VPNs etc.
>
> > 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.
> Wiki:
>
> http://wiki.lazarus.freepascal.org/synapse#SSH.2FTelnet_client_sample_program
>
> >> 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.
> No.
> SSH uses algorithms like DES, 3DES, AES for encryption. I strongly
> suspect they don't use the same algorithms as pgp for authentication/key
> exchange.
>
> What Richard perhaps meant is the pageant utility included with Putty.
>

Yes, and thanks for all of the input.
I am writing an app in Lazarus, that will manipulate files locally, and
then these files will get uploaded to a Linux box.
In my mind it makes sense to transfer the files via psftp (Putty) as it's
very common/easy to set-up ssh on a Linux box. Ideally, I would like to
have a Lazarus component to do this, but I am also happy to "shell out" to
psftp (via Lazarus), I just need the funtionality to be as user friendly as
possible, as many of my users will have never even seen a Linux command
line before :)

Thanks again for everyone's input

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


More information about the Lazarus mailing list