If you simply need to transfer files via SSH/SCP, then you can check out the libcurl package. libcurl, I believe, supports scp file transfers.
If you need to execute commands and get the output, I recommend learning how to use TProcess and simply use it to execute /usr/bin/ssh to connect to the remote machine using non-interactive, key-based authentication and collect the output using the TProcess' pipes.
I work on a product that uses this method to communicate with other devices via SSH and it works very well.
This email is fiction. Any resemblance to actual events
or persons living or dead is purely coincidental.
Seth Grover
sethdgrover[at]gmail[dot]com
On Sat, Oct 17, 2009 at 4:00 AM,
wrote:
> Send Lazarus mailing list submissions to
> ? ? ?
>
> To subscribe or unsubscribe via the World Wide Web, visit
> ? ? ? ?
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
> or, via email, send a message with subject or body 'help' to
> ? ? ?
>
> You can reach the person managing the list at
> ? ? ?
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Lazarus digest..."
>
>
> Today's Topics:
>
> ? 1. Re: Bug (whis) at Procedure List (Raistware)
> ? 2. working solution for Lazarus: connection to a remote PC ? via
> ? ? ?Lazarus (Cubic)
> ? 3. Re: fpchmod illegal character "&" (Paul Ishenin)
> ? 4. Re: working solution for Lazarus: connection to a remote PC
> ? ? ?via Lazarus (J?rgen Hestermann)
> ? 5. ManualDock and HWND change (And3mD)
> ? 6. Re: ManualDock and HWND change (Paul Ishenin)
> ? 7. Has somebody tried using some GExperts with Lazarus? (Thierry Coq)
> ? 8. Re: Has somebody tried using some GExperts with Lazarus?
> ? ? ?(Michael Van Canneyt)
> ? 9. Re: Has somebody tried using some GExperts with Lazarus?
> ? ? ?(Graeme Geldenhuys)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 16 Oct 2009 16:43:25 +0200
> From: Raistware
> Subject: Re: [Lazarus] Bug (whis) at Procedure List
> Cc: Lazarus mailing list
> Message-ID:
> Content-Type: text/plain; charset="iso-8859-15"; Format="flowed"
>
> Graeme Geldenhuys escribi?:
>> 2009/10/16 Raistware :
>>
>>> So, In the listbox I have:
>>> Ninguno
>>> Tclass1
>>> Tclass2
>>> <Todo>
>>>
>>>
>>> So it seem to be a problem with sorting, that you assumes that the first
>>> item should always be 'All' ?
>>>
>>
>> Ah, that would explain it then. I'm not 100% sure about how to get
>> around this though. Maybe sort the list with class names only, then
>> disable sorting and then insert <all> and <none> in the top of the
>> list. That could work? <all> (or whatever it's resource string value
>> is), will then always be at the top.
>>
>>
>>
>>
>
> Solved with this modification:
>
> ---
> diff --git a/ide/procedurelist.pas b/ide/procedurelist.pas
> index 9e578af..96d8ba9 100644
> --- a/ide/procedurelist.pas
> +++ b/ide/procedurelist.pas
> @@ -431,7 +431,8 @@ begin
> ? ? ? end;
> ? ? end;
> ? finally
> - ? ?cbObjects.ItemIndex := 0; ? // select <All> as the default
> + ? ?{ select <All> as the default }
> + ? ?cbObjects.ItemIndex := cbObjects.Items.IndexOf(lisPListAll);
> ? ? if cbObjects.Text = '' then
> ? ? ? cbObjects.ItemIndex := 1;
> ? end;
>
> ---
>
> Hope someone apply it to svn/git.
>
> Cheers,
> ? Raul Ferriz
>
>
>
> __________ Informaci?n de ESET NOD32 Antivirus, versi?n de la base de firmas de virus 4514 (20091016) __________
>
> ESET NOD32 Antivirus ha comprobado este mensaje.
>
>
http://www.eset.com
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20091016/bd4abe4a/attachment-0001.html>
>
> ------------------------------
>
> Message: 2
> Date: Fri, 16 Oct 2009 16:45:39 +0200
> From: Cubic
> Subject: [Lazarus] working solution for Lazarus: connection to a
> ? ? ? ?remote PC ? ? ? via Lazarus
> To:
> Message-ID:
> ? ? ? ?
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi.
>
> I am trying to connect from Linux to another Linux machine via SSH.
> Has anybody found a solution that really works?
>
> Thanks.
>
> --
> Speak less. Think more.
>
>
>
> ------------------------------
>
> Message: 3
> Date: Sat, 17 Oct 2009 00:14:39 +0800
> From: Paul Ishenin
> Subject: Re: [Lazarus] fpchmod illegal character "&"
> To: Lazarus mailing list
> Message-ID:
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Florian Klaempfl wrote:
>> Trunk from at least Monday?
>>
> My fault. One day earlier.
>
> Best regards,
> Paul Ishenin.
>
>
>
> ------------------------------
>
> Message: 4
> Date: Fri, 16 Oct 2009 18:51:56 +0200
> From: J?rgen Hestermann
> Subject: Re: [Lazarus] working solution for Lazarus: connection to a
> ? ? ? ?remote PC ? ? ? via Lazarus
> To: Lazarus mailing list
> Message-ID:
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
>> I am trying to connect from Linux to another Linux machine via SSH.
>> Has anybody found a solution that really works?
>
> Have you tried synapse together with cryptlib? I am not sure whether it
> works in your case but at least it should. I have problems using
> cryptlib but I am trying to connect to network switches which I cannot
> debug. Maybe you get it working if you can inspect both sides of the
> connection (or maybe you don't even have any problems with it).
>
> Ararat Synapse:
>
http://www.synapse.ararat.cz
>
> Cryptlib version 3.3.2:
>
http://cryptlib.sogot.de
>
> Cryptlib version 3.3.3:
> ftp://ftp.franken.de/pub/crypt/cryptlib/cl333.zip
> but this contains some errors in the cryptlib.pas file (unclosed
> comments). They can be fixed easily but I am not sure whether there are
> other problems (not shown by the compiler).
>
>
>
>
> ------------------------------
>
> Message: 5
> Date: Fri, 16 Oct 2009 22:35:55 +0200
> From: And3mD
> Subject: [Lazarus] ManualDock and HWND change
> To: "Lazarus mailing list"
> Message-ID: <op.u1wt52r2fxwf36 at and3md-pc>
> Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
>
> Hello
>
> When I try to do multiline captions in buttons with:
>
> SetWindowLong(btnWordWrapCaption.Handle,
> GWL_STYLE,GetWindowLong(btnWordWrapCaption.Handle, GWL_STYLE) or
> BS_MULTILINE);
>
> I found strange behavior. In FormCreate it doesn't work but in onclick
> works ok.
>
> I made some tests and the strange behavior appears only on docked forms
> (for example to Panel).
>
> Window and button have different Handle before and after Docking.
>
> Please see my test project:
>
>
http://and3md.xon.pl/lazarus/wordwrapbuttonhwnd.zip
>
> When application start shows Form2.Handle and btnWordWrapCaption.Handle.
> Next click 'Dock form2 to Panel' and showed 'Mullti line caption' button
> to see new window and button Handle.
>
> Is it a bug or I don't know something about LCL?
>
> Greetings
> Andrzej Kilijanski
>
>
>
>
>
>
>
> ------------------------------
>
> Message: 6
> Date: Sat, 17 Oct 2009 11:44:14 +0800
> From: Paul Ishenin
> Subject: Re: [Lazarus] ManualDock and HWND change
> To: Lazarus mailing list
> Message-ID:
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> And3mD wrote:
>> Window and button have different Handle before and after Docking.
> Yes, handle recreates on dock/undock operations and on any other parent
> change.
>
> Best regards,
> Paul Ishenin.
>
>
>
> ------------------------------
>
> Message: 7
> Date: Sat, 17 Oct 2009 10:09:55 +0200
> From: Thierry Coq
> Subject: [Lazarus] Has somebody tried using some GExperts with
> ? ? ? ?Lazarus?
> To: Lazarus mailing list
> Message-ID:
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Dear all,
> through the OpenTools API, Delphi is enhanced a lot, and all is
> customizable by the developer.
>
> I remember using it to have multi-line component tabs. It was
> interesting when one has many components available.
>
> GExperts:
http://www.gexperts.org
>
> Best regards,
> Thierry
>
>
>
> ------------------------------
>
> Message: 8
> Date: Sat, 17 Oct 2009 10:47:00 +0200 (CEST)
> From: Michael Van Canneyt
> Subject: Re: [Lazarus] Has somebody tried using some GExperts with
> ? ? ? ?Lazarus?
> To: Lazarus mailing list
> Message-ID: <alpine.DEB.2.00.0910171045020.6973 at home>
> Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
>
>
>
> On Sat, 17 Oct 2009, Thierry Coq wrote:
>
>> Dear all,
>> through the OpenTools API, Delphi is enhanced a lot, and all is customizable
>> by the developer.
>>
>> I remember using it to have multi-line component tabs. It was interesting
>> when one has many components available.
>>
>> GExperts:
http://www.gexperts.org
>
> A straight port will be hard, since the OpenTools API is very different from
> the lazarus designer API. You would end up re-implementing everything.
>
> But some of the individual wizards have been re-implemented, some are supported
> out-of-the-box.
>
> If there are any particular ones you would like to see supported in Lazarus,
> just ask, maybe they have been ported in one way or another.
>
> Michael.
>
>
>
> ------------------------------
>
> Message: 9
> Date: Sat, 17 Oct 2009 11:13:16 +0200
> From: Graeme Geldenhuys
> Subject: Re: [Lazarus] Has somebody tried using some GExperts with
> ? ? ? ?Lazarus?
> To: Lazarus mailing list
> Message-ID:
> ? ? ? ?
> Content-Type: text/plain; charset=UTF-8
>
> 2009/10/17 Thierry Coq :
>> through the OpenTools API, Delphi is enhanced a lot, and all is customizable
>> by the developer.
>
> Lazarus has something similar, but not OpenTools API compatible.
>
> As for GExperts. I never used Delphi without it installed. So
> obviously, when I moved over to Lazarus IDE, I brought some of those
> favorable wizards with me. I favorable, I mean the ones I used the
> most.
>
> ?* Procedure List
> ?* Editor Toolbar
>
> Lazarus already had some of the editor features built in, so nothing
> was needed there.
>
>
> Was there any specific features from GExperts that you were looking for?
>
> --
> Regards,
> ?- Graeme -
>
>
> _______________________________________________
> fpGUI - a cross-platform Free Pascal GUI toolkit
>
http://opensoft.homeip.net/fpgui/
>
>
>
> ------------------------------
>
> --
> _______________________________________________
> Lazarus mailing list
>
>
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
>
> End of Lazarus Digest, Vol 21, Issue 68
> ***************************************
>