Apr-25-2017, 06:51 PM
Connection to the device is ok. But when im trying to send some commands, i get an error:
stdin, stdout, stderr = ssh.exec_command('show ip int brief')
Any help?
Thanks
stdin, stdout, stderr = ssh.exec_command('show ip int brief')
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3/dist-packages/paramiko/client.py", line 405, in exec_command chan.exec_command(command) File "/usr/lib/python3/dist-packages/paramiko/channel.py", line 60, in _check return func(self, *args, **kwds) File "/usr/lib/python3/dist-packages/paramiko/channel.py", line 229, in exec_command self._wait_for_event() File "/usr/lib/python3/dist-packages/paramiko/channel.py", line 1086, in _wait_for_event raise e File "/usr/lib/python3/dist-packages/paramiko/transport.py", line 1726, in run ptype, m = self.packetizer.read_message() File "/usr/lib/python3/dist-packages/paramiko/packet.py", line 386, in read_message header = self.read_all(self.__block_size_in, check_rekey=True) File "/usr/lib/python3/dist-packages/paramiko/packet.py", line 251, in read_all raise EOFError() EOFErrorusing Python3 with Paramiko
Any help?
Thanks