piramiko异常:SSH session not active,求大神解答
deploySHPath = os.path.join(BASE_DIR,"static","constantfiles","jenkins-java-conf.sh") rollbackSHPath = os.path.join(BASE_DIR,"static","constantfiles","jenkins-java-conf-backup.sh") list_fail = [] t=paramiko.Transport((ip,SSH_PORT)) key=paramiko.RSAKey.from_private_key_file(PKEY) sftp=paramiko.SFTPClient.from_transport(t) sftp.put(deploySHPath,"/tmp/jenkins-java-conf.sh") sftp.put(rollbackSHPath,"/tmp/jenkins-java-conf-backup.sh") sftp.put(confPath,"/tmp/%s" % conf_name) t.close() #paramiko.SFTPClient.from_transport(t)这行抛出异常,异常信息为: #SSH session not active #求大神帮忙解答
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
脑子进水了,少写一行....