Compare commits

...

2 Commits

Author SHA1 Message Date
UpstreamData
9d5d19cc6b version: bump version number. 2023-07-27 20:45:42 -06:00
UpstreamData
cc38129571 bug: add back pwd for ssh connections. 2023-07-27 20:45:08 -06:00
2 changed files with 5 additions and 2 deletions

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

View File

@@ -1,6 +1,6 @@
[tool.poetry]
name = "pyasic"
version = "0.37.3"
version = "0.37.4"
description = "A set of modules for interfacing with many common types of ASIC bitcoin miners, using both their API and SSH."
authors = ["UpstreamData <brett@upstreamdata.ca>"]
repository = "https://github.com/UpstreamData/pyasic"