Jump to content
Epo

Remote SSH session control inside a Delphi program

Recommended Posts

Hi,

I would like to know if it is possible with the ICS components to open a (remote) terminal SSH session with a linux machine in a Delphi program (on Win 10 e.g.) and to send commands bash (ls, ps, xtodo, ...) and to receive the outputs (to know when the command execute is finished).

If so, is there an example or skeleton for this application type ?

Thanks a lot,

Eddy

Share this post


Link to post

Sorry, ICS does not support SSH.  There is an SSH terminal application on the ICS User Made web page, gut it was written in 2002 using old versions of OpenSSL and ICS,and is unlikely to still work.

 

Angus

 

Share this post


Link to post

Hi Joseph,

 

Actually, the problem is not SSH itself. OpenSSH works perfectly with scripts (that open a connection, launch a script and close the connection). The goal is to keep an open connection and sends the instructions (and retrieve the outputs - stdout) like manually we can do it at a terminal but from a Delphi program. The open/close actions takes too much time in my case. 

Share this post


Link to post

Thank you, François.

I will test it (probably - others tasks on fire:classic_dry:) next week.

 

Eddy

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×