解决方案一:添加参数 disabled_algorithms={'pubkeys': ['rsa-sha2-256', 'rsa-sha2-512']}
ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect(hostname=sftp_ip, port=sftp_port, username=sftp_user_name, pkey=my_key, disabled_algorithms={'pubkeys': ['rsa-sha2-256', 'rsa-sha2-512']})
t = ssh.get_transport()
sftp = t.open_sftp_client()
引自:https://www.qiniu.com/qfans/qnso-4135261#comments