Open mrcancer91 opened 4 years ago
Hey,
Thanks for the report (and the compliments 😊). Sorry for not getting back to you sooner, but I just realised that I somehow disabled the notifications from github. I'll look into what you propose and see what I can do. Can you maybe share what you tried?
Kind regards
-Cédric
Hi,
With paramiko exec_command()
, I have to write my own SSH class using invoke_shell()
instead of exec_command()
in order to communicate with the customized shell of the WiFi router.
Best regards, Duy
Hi Cédric,
First of all, your citizenshell is awesome! The package is so well written and a begginer like me learned a lot from your code. However, my current project requires to interact with a customized SSH server in a WiFi router, and I'm having current barriers:
citizenshell.SecureShell
's initialization failed because of BannerTimeout Exception, after I directly adding bannter_timout=100000 into SecureShell'sdo_connect
, the 2nd barrier arisesexec_command()
, chan.recv_exit_status() seems to run internally until the banner_timeout exceeded.I tried using paramiko's invoke_shell and finally could manually interact with the router's SSH shell. I forked citizenshell and tried to modify by myself but maybe my limited knowledge is not enough yet. It would be wonderful if user could pick a method between exec channel and invoke_shell to interact with SSH server.
Thank you for the wonderful citizenshell!