예제 #1
0
 def __init__(self, client, sftp=True, auto_close=True):
     BaseSession.__init__(self, auto_close=auto_close)
     self.ssh_client = client
     if sftp:
         self.sftp = client.open_sftp()
     else:
         self.sftp = None
예제 #2
0
파일: ssh.py 프로젝트: coder46/rcontrol
 def __init__(self, client, auto_close=True):
     BaseSession.__init__(self, auto_close=auto_close)
     self.ssh_client = client
     self.sftp = client.open_sftp()
예제 #3
0
 def __init__(self, client, auto_close=True):
     BaseSession.__init__(self, auto_close=auto_close)
     self.ssh_client = client
     self.sftp = client.open_sftp()