Reputation: 25912
I need a helper library that actually makes an ssh connection. Not one that spawns another app to do so. (eg: pexpect). It also needs support automating the CLI interface. However it needs to be similar to pexpect in that it needs to wait for input (ie: a prompt with certain text in it). Ultimately it needs to be cross platform too (this why pexpect is a poor choice). Also very important to note: I am not logging into a linux shell. This is a custom CLI app. It must also support SSH, not SSH2.
Upvotes: 0
Views: 2005
Reputation: 288260
paramiko or its fork ssh are ssh client implementations in native Python.
However, both only support the newer ssh v2 protocol. ssh v1 was fundamentally flawed. It is basically an obfuscated telnet and has been deprecated for a decade. Therefore, it is no longer in wide use.
If the remote supports it, use telnetlib to establish a telnet connection.
Upvotes: 6