Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Study replace paramiko with ssh2-python #689

Open
micafer opened this issue Oct 18, 2018 · 2 comments
Open

Study replace paramiko with ssh2-python #689

micafer opened this issue Oct 18, 2018 · 2 comments

Comments

@micafer
Copy link
Member

micafer commented Oct 18, 2018

https://parallel-ssh.org/post/ssh2-python/

@micafer micafer self-assigned this Oct 18, 2018
micafer added a commit that referenced this issue Oct 19, 2018
micafer added a commit that referenced this issue Oct 19, 2018
@alahiff
Copy link

alahiff commented Mar 22, 2019

Do you know if ssh2-python supports multiplexing? I'm asking because I don't think paramiko does (see paramiko/paramiko#852). I've encountered issues with one cloud where IM's ssh connections to an Ansible node in that cloud trigger DoS protection in their site firewall and then block IM's IP address temporarily. They told me that using ssh configuration like this:

ControlMaster auto
ControlPath ~/.ssh/socket/ssh_mux_%h_%p_%r
ControlPersist 30m

would solve the problem, but it seems that this can't be done with paramiko.

@micafer micafer added this to the 1.8.6 milestone Sep 24, 2019
@micafer micafer closed this as completed Sep 24, 2019
@micafer micafer removed this from the 1.8.6 milestone Sep 26, 2019
@micafer micafer reopened this Sep 26, 2019
@micafer
Copy link
Member Author

micafer commented Sep 27, 2019

There are some issues installing this package that complicates their usage.
There are other library: python-libssh2 available in most of the linux distributions.
The problem is that it is a bit old, and does not have maintenance for a long time.
https://github.com/wallix/pylibssh2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants