Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssh2.exceptions.PublickeyUnverifiedError #134

Open
max-l opened this issue Nov 1, 2022 · 1 comment
Open

ssh2.exceptions.PublickeyUnverifiedError #134

max-l opened this issue Nov 1, 2022 · 1 comment

Comments

@max-l
Copy link

max-l commented Nov 1, 2022

I have have an rsa key that works the ssh program running from a shell (ssh -i myKey me@myhost)

When connecting with pssh, I get this exception:

Traceback (most recent call last):
  File "/home/maxou/dev/dry_pipe/venv3.10/lib/python3.10/site-packages/pssh/clients/base/single.py", line 204, in _auth_retry
    self.auth()
  File "/home/maxou/dev/dry_pipe/venv3.10/lib/python3.10/site-packages/pssh/clients/base/single.py", line 349, in auth
    return self._pkey_auth(self.pkey)
  File "/home/maxou/dev/dry_pipe/venv3.10/lib/python3.10/site-packages/pssh/clients/base/single.py", line 389, in _pkey_auth
    return self._pkey_from_memory(_pkey)
  File "/home/maxou/dev/dry_pipe/venv3.10/lib/python3.10/site-packages/pssh/clients/native/single.py", line 255, in _pkey_from_memory
    self.session.userauth_publickey_frommemory(
  File "ssh2/session.pyx", line 293, in ssh2.session.Session.userauth_publickey_frommemory
  File "ssh2/utils.pyx", line 168, in ssh2.utils.handle_error_codes
ssh2.exceptions.PublickeyUnverifiedError

Note1: the same key DO work when using pssh on OTHER hosts. So the problem is only with a specific host.

Note2: ssh -v gives me the same relevant lines, on working hosts as well as on non working hosts :

debug1: Local version string SSH-2.0-OpenSSH_8.9p1 Ubuntu-3
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.4
debug1: compat_banner: match: OpenSSH_7.4 pat OpenSSH_7.4* compat 0x04000006

@lilydjwg
Copy link
Owner

lilydjwg commented Nov 3, 2022

You seem to have found the wrong project. No mentioned files exist in this project and this project doesn't use ssh2; it uses the ssh command line tool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants