summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2023-05-05Enhance AgentKey with comment, inner_key attributesJeff Forcier
- Comment was being read-but-not-stored from the agent reply. wat? - Use newly added PKey constructor to instantiate a key subclass for the 'inner'/proxied key, this way client code can obtain stuff like bit size, fingerprint, etc. - Proxy to inner_key with __getattr__ so clients don't have to know whether they're dealing with an AgentKey or a regular one - Add `__repr__` to PKey instead of doing it in AgentKey. (wow, how did we not have this ever?)
2023-05-05Enhance PKey a bunchJeff Forcier
- add .name to eventually replace .get_name - use that in a bunch of spots to avoid some duplication - add .identifiers classmethod to extend existing idea from ECDSAKey - add from_type_string alt constructor which uses .identifiers - use that in HostKeys (includes hopefully-minor refactoring) - no longer giving outdated init kwarg to ECDSA host key loading
2023-05-05Remove outdated/bad test fixtureJeff Forcier
This was added for #2173 but seemingly in its initial pass, before the submitter realized two spaces is _not_ a valid separator. It accidentally passed the tests due to how HostKeys.from_line was implemented at the time (two spaces -> 'key type' was misread and an empty string -> empty string not a valid key type -> returns None). An impending rewrite of that method turned this up.
2023-05-05Fix inaccurate PKey.__init__ docstring: data is bytes, not strJeff Forcier
This seems likely a missed spot from the Python 3 conversion or the Python 2 drop.
2023-05-05Add ed25519 and ecdsa key types to hostkeys test fixturesJeff Forcier
2023-05-05Add algorithm_name property to PKeyJeff Forcier
2023-05-05Add new PKey.fingerprint property at long lastJeff Forcier
2023-05-05Fix now-broken-on-py3 AgentKey.__str__, by deleting itJeff Forcier
2023-05-05Random comment addsJeff Forcier
2023-04-16Tinker a bit with tasks re: doc watching, doc browsingJeff Forcier
Requires an inflight set of changes to invocations
2023-04-12Version bump for devJeff Forcier
2023-04-12Merge branch '3.0' into 3.1Jeff Forcier
2023-04-12Use newer circleci orb to stop using codecov's old pypi packageJeff Forcier
Closes #2226
2023-03-10Cut 3.1.0Jeff Forcier
2023-03-10codespellJeff Forcier
2023-03-10Changelog re #2013, closes #2009Jeff Forcier
2023-03-10Merge branch 'main' into 2013-intJeff Forcier
2023-03-03flake8 re #2193Jeff Forcier
2023-03-03Merge pull request #2193 from AstraLuma/server-agent-docsJeff Forcier
Expand documentation on server agent handling.
2023-03-02Add missing comma to pass style checksMike Salvatore
2023-03-02Use a lambda for _mock_set_remote_channel()Mike Salvatore
2023-03-02Wrap test_channel_timeout() to 79 charactersMike Salvatore
2023-03-02Test configurable channel timeoutIlija Lazoroski
2023-03-02Add timeout for opening an SSH channelvakarisz
2023-02-24Expand documentation on server agent handling.Jamie Bliss
2023-02-24Use releases 2.1 to hide 1.x, 2.x unreleased bits in changelogJeff Forcier
2023-02-24s/os.path/pathlib/ in www sphinx confJeff Forcier
2023-02-16Add credit in changelog re #2173Jeff Forcier
2023-02-16spacing to pass style checkAlex Chavkin
2023-02-16Update tests for #2173Alex Chavkin
2023-02-16hostkeys: update docstring for autdodoc per #2173Alex Chavkin
2023-02-16Changelog for PR #2173Alex Chavkin
2023-02-16Double quotes to pass style checkAlex Chavkin
2023-02-16Split known_hosts fields on either a single space or tabAlex Chavkin
2023-02-16Split known host file entries on any whitespaceAlex Chavkin
(Not just a single space) OpenSSH is more permissive in documentation and code
2023-01-27Add codespell to dev-reqs, circleciJeff Forcier
2023-01-27Comment codespellrc again, add Messr Flage back to ignored words listJeff Forcier
Really wish codespell had inline ignores like flake/black
2023-01-27Just change a faux-misspelt surname in an example text snippetJeff Forcier
2023-01-27Twiddle File test to lack faux-misspellings in its cut-up stringsJeff Forcier
2023-01-27Twiddle ProxyCommand read test to not have faux misspellings, and to be way ↵Jeff Forcier
more understandable
2023-01-27Changelog re #2178Jeff Forcier
2023-01-27Tweak silly test constant to be a real wordJeff Forcier
2023-01-27Tidy up codespellrc, revert s/keypair/key pair/Jeff Forcier
2023-01-27Revert "RF test to use "12345" and "to" instead of misspelling components"Jeff Forcier
This reverts commit 5efa354ce9fff1217d22e52493d1442866821a7b.
2023-01-25From the code review - fix wording in .codespellrc commentYaroslav Halchenko
Co-authored-by: Brian Skinn <brian.skinn@gmail.com>
2023-01-24[DATALAD RUNCMD] Run codespell -wYaroslav Halchenko
=== Do not change lines below === { "chain": [], "cmd": "codespell -w", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^
2023-01-24RF test to use "12345" and "to" instead of misspelling componentsYaroslav Halchenko
to not upset codespell
2023-01-24Basic codespell config file to skip common culpritsYaroslav Halchenko
2023-01-24Harmonize into *args from *larg, *largsYaroslav Halchenko
Initially spotted since 'larg' was picked up by codespell as something possibly to fix to become 'large'. But realized that it is just an inconsistency. Had various uses: ❯ git grep '\*arg\>' | nl 1 paramiko/sftp_client.py: def _request(self, t, *arg): 2 paramiko/sftp_client.py: num = self._async_request(type(None), t, *arg) 3 paramiko/sftp_client.py: def _async_request(self, fileobj, t, *arg): 4 paramiko/sftp_server.py: def _response(self, request_number, t, *arg): ❯ git grep '\*largs\>' | nl 1 paramiko/sftp_server.py: *largs, 2 paramiko/sftp_server.py: self.server = sftp_si(server, *largs, **kwargs) 3 paramiko/sftp_si.py: def __init__(self, server, *largs, **kwargs): 4 paramiko/sftp_si.py: super().__init__(*largs, **kwargs) ❯ git grep '\*larg\>' | nl 1 paramiko/server.py: handler = handler_class(channel, name, self, *larg, **kwarg) 2 paramiko/transport.py: def set_subsystem_handler(self, name, handler, *larg, **kwarg): in addition to more conventional ❯ git grep '\*args\>' | nl 1 paramiko/_winapi.py: super().__init__(*args) 2 paramiko/_winapi.py: def __init__(self, *args, **kwargs): 3 paramiko/_winapi.py: super().__init__(*args, **kwargs) 4 paramiko/auth_handler.py: def _log(self, *args): 5 paramiko/auth_handler.py: return self.transport._log(*args) 6 paramiko/channel.py: def _check(self, *args, **kwds): 7 paramiko/channel.py: return func(self, *args, **kwds) 8 paramiko/channel.py: def _log(self, level, msg, *args): 9 paramiko/channel.py: self.logger.log(level, "[chan " + self._name + "] " + msg, *args) 10 paramiko/sftp.py: def _log(self, level, msg, *args): 11 paramiko/sftp.py: self.logger.log(level, msg, *args) 12 paramiko/sftp_client.py: def _log(self, level, msg, *args): 13 paramiko/sftp_client.py: self._log(level, m, *args) 14 paramiko/transport.py: def _log(self, level, msg, *args): 15 paramiko/transport.py: self.logger.log(level, msg, *args) 16 tests/__init__.py: def _test_under_locale(testself, *args, **kwargs): 17 tests/__init__.py: return test_method(testself, *args, **kwargs) 18 tests/test_client.py: def __init__(self, *args, **kwargs): 19 tests/test_client.py: super().__init__(*args, **kwargs) 20 tests/test_config.py: def inner(command, *args, **kwargs): 21 tests/test_packetizer.py: def wrapper(*args, **kwargs): 22 tests/test_packetizer.py: result = func(*args, **kwargs)
2023-01-20Massage SSHClient.connect exception-raising docstringJeff Forcier
- Sphinx Python domain can link to non-stdlib exception classes inside the `:raises:` fieldlist now! yay!! - Add explicit mention of 'can raise NoValidConnectionsError', which was never added when the latter was created. Was still technically correct (it is a subclass of socket.error) but that is not the best kind of correct, after all.