meuter / citizenshell

Interact with shell locally or over different connection types (telnet, ssh, serial, adb)
http://meuter.github.io/citizenshell
MIT License
18 stars 11 forks source link

[Feature request] Support SSH invoke_shell #14

Open mrcancer91 opened 4 years ago

mrcancer91 commented 4 years ago

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:

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!

meuter commented 3 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

mrcancer91 commented 3 years ago

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