Python pexpec 解决scp ssh_pexpect ssh.read() 卡死-CSDN博客

网站介绍:文章浏览阅读7.1k次。#!/usr/bin/python2.7import pexpectimport os, getpassdef ssh_command(user, host, password, command): ssh_newkey = 'Are you sure you want to continue connecting' child = pexpect.spawn('ssh -l %s_pexpect ssh.read() 卡死