bugfix
This commit is contained in:
parent
8877ecf99e
commit
7d2c0a7a21
@ -51,12 +51,14 @@ class SSHNode:
|
||||
refconn = await refconn.connect_ssh(host,
|
||||
username=username,
|
||||
known_hosts=None,
|
||||
keepalive_interval=60,
|
||||
password=password,
|
||||
port=port)
|
||||
else:
|
||||
refconn = await asyncssh.connect(host,
|
||||
username=username,
|
||||
known_hosts=None,
|
||||
keepalive_interval=60,
|
||||
password=password,
|
||||
port=port)
|
||||
self.jumper_conns.append(refconn)
|
||||
@ -70,12 +72,14 @@ class SSHNode:
|
||||
username=username,
|
||||
port=port,
|
||||
password=password,
|
||||
keepalive_interval=60,
|
||||
known_hosts=None)
|
||||
else:
|
||||
self.conn = await asyncssh.connect(host,
|
||||
username=username,
|
||||
password=password,
|
||||
known_hosts=None,
|
||||
keepalive_interval=60,
|
||||
port=port)
|
||||
|
||||
def close(self):
|
||||
|
Loading…
Reference in New Issue
Block a user