python pexpect pxssh scp_[python]使用pexpect模块进行批量scp-CSDN博客

网站介绍:文章浏览阅读127次。#!/usr/bin/env python# -*- coding: utf-8 -*-import time,osimport threadingimport systhreads = []username = 'root'passwd = '123456'ssh_ip = ['10.11.11.1','10.11.11.2','10.11.11.3','10.11.11.4']try:impo..._pexpect.spawn模拟scp