p3lib 1.1.67__py3-none-any.whl → 1.1.68__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- p3lib/ssh.py +10 -2
- {p3lib-1.1.67.dist-info → p3lib-1.1.68.dist-info}/METADATA +1 -1
- {p3lib-1.1.67.dist-info → p3lib-1.1.68.dist-info}/RECORD +6 -6
- {p3lib-1.1.67.dist-info → p3lib-1.1.68.dist-info}/LICENSE +0 -0
- {p3lib-1.1.67.dist-info → p3lib-1.1.68.dist-info}/WHEEL +0 -0
- {p3lib-1.1.67.dist-info → p3lib-1.1.68.dist-info}/top_level.txt +0 -0
p3lib/ssh.py
CHANGED
@@ -331,8 +331,10 @@ class SSH(object):
|
|
331
331
|
'timeout': timeout,
|
332
332
|
'username': self._username,
|
333
333
|
'key_filename': privateKeyFile,
|
334
|
-
# This
|
335
|
-
|
334
|
+
# This used to be required or else loging in without the password would fail.
|
335
|
+
# This is no longer true for the latest paramiko as of 8 Mar 2024.
|
336
|
+
# Therefore this workaround has been removed but shown in place in case of future issues.
|
337
|
+
#'disabled_algorithms': dict(pubkeys=['rsa-sha2-256', 'rsa-sha2-512'])
|
336
338
|
}
|
337
339
|
# If we have a password then add this to the config
|
338
340
|
if self._password and len(self._password) > 0:
|
@@ -340,6 +342,12 @@ class SSH(object):
|
|
340
342
|
self._ssh.connect(**cfg)
|
341
343
|
connected = True
|
342
344
|
break
|
345
|
+
|
346
|
+
# Ensure we throw an exception in the event of authencication failure as this ensures
|
347
|
+
# that the code to triggers the code to allow the user to copy thier public ssh key to
|
348
|
+
# the server in order that future logins are passwordless.
|
349
|
+
except AuthenticationException:
|
350
|
+
raise
|
343
351
|
|
344
352
|
except:
|
345
353
|
pass
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: p3lib
|
3
|
-
Version: 1.1.
|
3
|
+
Version: 1.1.68
|
4
4
|
Summary: A group of python modules for networking, plotting data, config storage, automating boot scripts, ssh access and user input output.
|
5
5
|
Home-page: https://github.com/pjaos/p3lib
|
6
6
|
Author: Paul Austen
|
@@ -11,10 +11,10 @@ p3lib/mqtt_rpc.py,sha256=6LmFA1kR4HSJs9eWbOJORRHNY01L_lHWjvtE2fmY8P8,10511
|
|
11
11
|
p3lib/netif.py,sha256=3QV5OGdHhELIf4MBj6mx5MNCtVeZ7JXoNEkeu4KzCaE,9796
|
12
12
|
p3lib/netplotly.py,sha256=PMDx-w1jtRVW6Od5u_kuKbBxNpTS_Y88mMF60puMxLM,9363
|
13
13
|
p3lib/pconfig.py,sha256=_ri9w3aauHXZp8u2YLYHBVroFR_iCqaTCwj_MRa3rHo,30153
|
14
|
-
p3lib/ssh.py,sha256
|
14
|
+
p3lib/ssh.py,sha256=-w_2oQWZaIABanF1lk8fRyMLkJK231Bvy11StgdYqJg,38951
|
15
15
|
p3lib/uio.py,sha256=hMarPnYXnqVF23HUIeDfzREo7TMdBjrupXMY_ffuCbI,23133
|
16
|
-
p3lib-1.1.
|
17
|
-
p3lib-1.1.
|
18
|
-
p3lib-1.1.
|
19
|
-
p3lib-1.1.
|
20
|
-
p3lib-1.1.
|
16
|
+
p3lib-1.1.68.dist-info/LICENSE,sha256=igqTy5u0kVWM1n-NUZMvAlinY6lVjAXKoag0okkS8V8,1067
|
17
|
+
p3lib-1.1.68.dist-info/METADATA,sha256=zIeiIZdLh23VBFQxyIgt8L08nmOhaHJP0Bl2_rtW-AQ,920
|
18
|
+
p3lib-1.1.68.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
19
|
+
p3lib-1.1.68.dist-info/top_level.txt,sha256=SDCpXYh-19yCFp4Z8ZK4B-3J4NvTCJElZ42NPgcR6-U,6
|
20
|
+
p3lib-1.1.68.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|