def _connect(self):
client = paramiko.SSHClient()
client.load_system_host_keys()
client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
client.connect(self.url.host, self.url.port or 22, self.url.user, self.url.password)
return scp.SCPClient(client.get_transport())
评论列表
文章目录