[Work][Python]How connect system through SSH

import paramiko
client = paramiko.SSHClient()
client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
client.connect('10.35.174.11', 22, username='root', password='$pl3nd1D', timeout=4)
stdin, stdout, stderr = client.exec_command('sh manager version')
for std in stdout.readlines():
print(std)
client.close()

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store