dparrish / libcli

Libcli provides a shared library for including a Cisco-like command-line interface into other software. It's a telnet interface which supports command-line editing, history, authentication and callbacks for a user-definable function tree.
https://dparrish.com/link/libcli
GNU Lesser General Public License v2.1
289 stars 143 forks source link

Suggestion for SSH #94

Open mbandu opened 1 month ago

mbandu commented 1 month ago

Hi,

Any suggestion for SSH support? Is this outside libcli?

Regards,

Bandu

RobSanders commented 1 month ago

Bandu - libcli doesn't support access via SSH directly, but we have used it internally behind ssh by setting the libcli based application as the default shell for users who are allowed to access it. This is on a Linux platform.

mbandu commented 1 month ago

@RobSanders thank you so much for answer. Is that mean if I can use stdin for my libcli, it will work with SSH. Am I thinking it the right way?

thanks again.

Bandu

RobSanders commented 1 month ago

I think so. May need to be careful of ssh idle detection not being aware of your libcli app taking a long time to process a command and killing the sessions perhaps.