superflexible / TGPuttyLib

An SFTP client shared library (dll/so/dylib) with bindings and classes for C++, Delphi and Free Pascal based on PuTTY
https://www.syncovery.com/tgputtylib/
Other
101 stars 22 forks source link

Question: Can ssh-shell commands be executed? #17

Open pult opened 3 years ago

pult commented 3 years ago

Can ssh-shell commands be executed?

Like libssh2 (https://www.libssh2.org/examples/ssh2_exec.html) + libssh2_channel_write libssh2_channel_read

superflexible commented 3 years ago

Hello, currently this feature is not available. I plan to add it in a future version.

rubenjesuslpez commented 3 years ago

Is there any forecast for Android?

superflexible commented 3 years ago

Android development with Delphi? Hmm. I'm not a mobile developer, but I'm sure it can be done?

rubenjesuslpez commented 3 years ago

Thanks for your answer

Yes, we develop in Delphi 10.4.2, for android.

Any clue how to do it?

We have seen that your component is not compatible with Android

De: Tobias Giesen @.> Enviado el: miércoles, 28 de abril de 2021 14:01 Para: superflexible/TGPuttyLib @.> CC: rubenjesuslpez @.>; Comment @.> Asunto: Re: [superflexible/TGPuttyLib] Question: Can ssh-shell commands be executed? (#17)

Android development with Delphi? Hmm. I'm not a mobile developer, but I'm sure it can be done?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/superflexible/TGPuttyLib/issues/17#issuecomment-828396323 , or unsubscribe https://github.com/notifications/unsubscribe-auth/ADEXWTCPOKT3Q7GLML2L7KDTK72GNANCNFSM4TOSMWWQ . https://github.com/notifications/beacon/ADEXWTAP3NEBX5FSEISM4J3TK72GNA5CNFSM4TOSMWW2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGFQFGIY.gif

superflexible commented 3 years ago

Hello, well, first you need to find out how to cross-compile the libtgputty.so library. Might be easier under Linux than Windows. I don't know. That's C cross-compiling for Android. You can Google that topic.

Concerning the Delphi part, you probably need to add some IFDEFs. And most importantly, use only TTGPuttySFTP class in tgputtysftp.pas and NOT the component. See the new DELPHI RECOMMENDATION at the end of README.md.