I think using
netmiko is easy for python SSH scripting.
Very simple example:
from netmiko import ConnectHandler extrm_X460 = { 'device_type': 'extreme', 'ip': '172.16.10.2', 'username': 'admin', 'password': 'verysecret', 'port' : 12322, # optional, defaults to 22 } net_connect = ConnectHandler(**extrm_X460) output = net_connect.send_command('show switch') print(output)