Paramiko shows a "Usage" messagge before the expected result

Hi all, I’m playing with parakimo to run remote commands via ssh. I can obtain the expected result, but a sort of annoying “Usage” message is shown before that (I had to cut the imageto reduce file size):

and thi is the python code (python 3.9.7 on RHEL 8 x86_64):

#!/usr/bin/python3

import paramiko
from rich import print, pretty, inspect
import time
pretty.install()

clnode = paramiko.SSHClient()
clnode.load_host_keys('/root/.ssh/known_hosts')
clnode.load_system_host_keys()
clnode.set_missing_host_key_policy(paramiko.AutoAddPolicy())
clnode.connect('192.168.2.37', username='root', allow_agent=False)
inspect(clnode, methods=True)
stdin, stdout, stderr = clnode.exec_command('hostname', timeout=3)
output = stdout.read()
print(output)
clnode.close()

Can someone tell me why I obtain this message and how to remove it?
Thank’s a lot :slightly_smiling_face:

I know this ca be a newbie-level question but is there anybody who can give me a little help?

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.