Epo 1 Posted October 19, 2019 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
Angus Robertson 574 Posted October 19, 2019 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
Joseph MItzen 251 Posted October 19, 2019 Doesn't Windows support SSH now? Could you use that functionality to do what you want? https://www.howtogeek.com/336775/how-to-enable-and-use-windows-10s-built-in-ssh-commands/ Share this post Link to post
Epo 1 Posted October 20, 2019 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
FPiette 380 Posted October 20, 2019 Putty can work as a SSH proxy tunnel (https://www.math.ucla.edu/computing/kb/creating-ssh-proxy-tunnel-putty). The idea is that you run Putty configured as SSH tunnel and you connect your ICS/TWSocket application to PuTTY which relay to the SSH server. Share this post Link to post
Epo 1 Posted October 20, 2019 Thank you, François. I will test it (probably - others tasks on fire) next week. Eddy Share this post Link to post