import paramiko
client = paramiko.SSHClient()
client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
client.connect('10.116.33.116', username='root', password='123456')
stdin, stdout, stderr = client.exec_command('ls -l')
stdin, stdout, stderr = client.exec_command('echo hehehaha')
stdin, stdout, stderr = client.exec_command('ifconfig')
print stdout.read()
client.close()