paramiko_su_root】的更多相关文章

#coding=utf8 import paramiko import time import logging ''' if user root,can not login,must use user xx and then switch to root not root ,then run ''' def _conn_root(ip,port,username,passwd,cmd): s = paramiko.SSHClient() s.load_system_host_keys() s.s…