Troubleshoot Python Script

Completed Posted 2 years ago Paid on delivery
Completed 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.

Python Linux Shell Script

Project ID: #32014512

About the project

5 proposals Remote project Active 2 years ago

Awarded to:

nvrrox

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.

$28 USD in 7 days
(1 Review)
0.9

5 freelancers are bidding on average $22 for this job

johnfidel98

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

$25 USD in 1 day
(70 Reviews)
5.8
tazeem95

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

$20 USD in 7 days
(7 Reviews)
2.5
singhgtm

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.

$10 USD in 2 days
(1 Review)
0.6
lostwizard

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

$25 USD in 2 days
(0 Reviews)
0.0