需求:
使用paramiko来批量上传文件到Linux远端服务器
脚本如下:
e>
测试: PS:在tmp下不能有目录 如果有目录会提示报错
[root@salt_server paramiko]# python paramiko-upload.py
### ### ### ### ### ### ### ### ### ### #
Begining to upload file2014-11-14 22:13:53.058372
Uploading file: /tmp/test/messages
Upload file success 2014-11-14 22:13:53.061104
### ### ### ### ### ### ### ### ### ###
[root@salt_server paramiko]#