Troubleshoot Python Script
$10-30 USD
Paid on delivery
I have a Python script using Paramiko to run interactive SSH commands. I can SSH into a Linux server and running commands without any issues, but I have a specific appliance where Paramiko fails to run the interactive commands.
Remote access to the specific appliance will be required to troubleshoot.
Below is the output of the error when attempting to run the script on the appliance:
----------------------------------
bash-4.2$ python3 [login to view URL] -c [login to view URL]
2021-11-02 11:47:21,076 : DEBUG : MainThread : Trying to connect [login to view URL] as test
/usr/lib/python3.6/site-packages/paramiko/[login to view URL]: CryptographyDeprecationWarning: signer and verifier have been deprecated. Please use sign and verify instead.
algorithm=[login to view URL](),
2021-11-02 11:47:22,027 : DEBUG : MainThread : Connected to [login to view URL]
2021-11-02 11:47:22,028 : DEBUG : MainThread : executing cmd: show image ver
Traceback (most recent call last):
File "[login to view URL]", line 120, in <module>
main(args)
File "[login to view URL]", line 108, in main
perform_ssh(config_data)
File "[login to view URL]", line 93, in perform_ssh
client.execute_command(command)
File "[login to view URL]", line 70, in execute_command
stdin, stdout, stderr = self.ssh_client.exec_command(cmd)
File "/usr/lib/python3.6/site-packages/paramiko/[login to view URL]", line 441, in exec_command
chan.exec_command(command)
File "/usr/lib/python3.6/site-packages/paramiko/[login to view URL]", line 60, in _check
return func(self, *args, **kwds)
File "/usr/lib/python3.6/site-packages/paramiko/[login to view URL]", line 234, in exec_command
self._wait_for_event()
File "/usr/lib/python3.6/site-packages/paramiko/[login to view URL]", line 1161, in _wait_for_event
raise e
File "/usr/lib/python3.6/site-packages/paramiko/[login to view URL]", line 1798, in run
ptype, m = self.packetizer.read_message()
File "/usr/lib/python3.6/site-packages/paramiko/[login to view URL]", line 391, in read_message
header = self.read_all(self.__block_size_in, check_rekey=True)
File "/usr/lib/python3.6/site-packages/paramiko/[login to view URL]", line 256, in read_all
raise EOFError()
EOFError
bash-4.2$
------------------------------------
Python script and JSON configuration file will be provided upon award of project.
Project ID: #32014512
About the project
Awarded to:
Hi There, I´ve been work with python for about 10 years... I think that your error is about a forgotten parenthesis or some """... If you could share the code on gist, i can help you debugging this application.
5 freelancers are bidding on average $22 for this job
Hi there, I'm an expert python programmer.... i've used paramiko before to execute ssh commands on remote servers... i can fix your issue
Hi there, I am a professional python developer. I can troubleshoot Python Script as per your requirements. Please let me know more about project details via chat initiated. Thanks
I have extensive experience of working in linux environment with python (and other programming languages). Given the output you've mentioned, I understand the high-level issue and will be able to fix it.
Troubleshooting is one of my specialties. This looks like something possibly not directly related to Python. In addition to Python knowledge, I have experience troubleshooting server and network configurations which ma More