#coding:UTF-8
import paramiko,time
host='192.168.5.28'
port=1222
name='root'
passwd='talent2012'
cmd=['/vload/bin/secv_shell','display version']
s=paramiko.SSHClient()
s.set_missing_host_key_policy(paramiko.AutoAddPolicy())
s.connect('192.168.5.28',1222,username='root',password='talent2012')
#stdin,stdout,stderr=s.exec_command('/root/test.sh')
stdin,stdout,stderr=s.exec_command('cd /var;pwd;ls')
out=stdout.readlines()
for o in out:
print o
'''
for i in cmd:
print '00'
stdin,stdout,stderr=s.exec_command(i)
out=stdout.readlines()
print '0'
for o in out:
print o
print '1'
print '2'
'''
s.colse()