Skip to content

[Feature request] Support SSH invoke_shell #14

@mrcancer91

Description

@mrcancer91

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:

  • The citizenshell.SecureShell's initialization failed because of BannerTimeout Exception, after I directly adding bannter_timout=100000 into SecureShell's do_connect, the 2nd barrier arises
  • The SSH server seems to be incompatible with paramiko's exec_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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions