Python Web18-05-18
Python学习记录15-07-07
在安装完paramiko,进行测试的时候遇到了这样的错误: 首先新建paramiko.py:import paramiko
hostname='192.168.1.110'
username='linux'
password='******'
#port=22
if __name__=='__main__':
#paramiko.util.log_to_file('paramiko.log')
s=paramiko.SSHClient()
#s.load_system_host_keys()
s.set_missing_host_key_policy(paramiko.AutoAddPolicy())
s.connect(hostname = hostname,username=username, password=password)
stdin,stdout,stderr=s.exec_command('ifconfig;free;df
....
....