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