Ubuntu - python paramiko issue (SSH)
Today I've encountered an issue with paramiko on Ubuntu server 12.04.
Tried to run a simple python script with SSH connection and got an error below:
At this point the easiest solution is to upgrade pip and paramiko as below:
Also you may need to upgrade setuptools.
Tried to run a simple python script with SSH connection and got an error below:
$ python >>> from Exscript.protocols import SSH2 >>> conn = SSH2() >>> conn.connect("192.68.164.1")
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python2.7/dist-packages/Exscript/protocols/Protocol.py", line 588, in connect return self._connect_hook(self.host, port) File "/usr/local/lib/python2.7/dist-packages/Exscript/protocols/SSH2.py", line 261, in _connect_hook self.client = self._paramiko_connect() File "/usr/local/lib/python2.7/dist-packages/Exscript/protocols/SSH2.py", line 153, in _paramiko_connect t.start_client() File "/usr/local/lib/python2.7/dist-packages/paramiko/transport.py", line 493, in start_client raise e AttributeError: 'EntryPoint' object has no attribute 'resolve'
At this point the easiest solution is to upgrade pip and paramiko as below:
# Upgrade pip sudo pip install --upgrade pip # Refresh cli cache hash -r # Use new pip to upgrade paramiko package sudo pip install --upgrade paramiko
Also you may need to upgrade setuptools.