From cc381295718752aa3c0cbf5128594090f6e90f6a Mon Sep 17 00:00:00 2001 From: UpstreamData <75442874+UpstreamData@users.noreply.github.com> Date: Thu, 27 Jul 2023 20:45:08 -0600 Subject: [PATCH] bug: add back pwd for ssh connections. --- pyasic/miners/base.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyasic/miners/base.py b/pyasic/miners/base.py index f0333b31..85f61690 100644 --- a/pyasic/miners/base.py +++ b/pyasic/miners/base.py @@ -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