bug: add back pwd for ssh connections.

This commit is contained in:
UpstreamData
2023-07-27 20:45:08 -06:00
parent 3dfd9f237d
commit cc38129571

View File

@@ -33,6 +33,8 @@ class BaseMiner(ABC):
self.api = None
self.web = None
self.ssh_pwd = "root"
# static data
self.ip = ip
self.api_type = None
@@ -89,6 +91,7 @@ class BaseMiner(ABC):
@pwd.setter
def pwd(self, val):
self.ssh_pwd = val
try:
if self.web is not None:
self.web.pwd = val
@@ -125,7 +128,7 @@ class BaseMiner(ABC):
str(self.ip),
known_hosts=None,
username="root",
password="root",
password=self.ssh_pwd,
server_host_key_algs=["ssh-rsa"],
)
return conn