1:上传文件实例 public void UploadXMLLog(string xmlpath) { NameValueCollection nvc = new NameValueCollection(); CookieContainer cookies = new CookieContainer(); nvc.Add("", ""); ......
上传文件 import os import paramikoimport logging from django.core.cache import cache from YunTai import settings def upload_files(connectIp): ssh = paramiko.Transport((connectIp, 22)) try: password = cache.get('backup_server_password') if not password: r