Reinier Olislagers wrote:

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

An important point about SSH is that it separates authentication (i.e. password submission, certificate checking etc.) from normal traffic. So leaving aside the desirability of not passing passwords around "in clear", there's no longer any need for the client to parse a login prompt from the server, and to some extent the client can retain a password once entered and use it for multiple sessions.

--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to