上传文件 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