Skip to content

fix: Exception: key cannot be used for signing#135

Open
fruh wants to merge 1 commit intoAloneMonkey:masterfrom
citadelo:master
Open

fix: Exception: key cannot be used for signing#135
fruh wants to merge 1 commit intoAloneMonkey:masterfrom
citadelo:master

Conversation

@fruh
Copy link
Copy Markdown

@fruh fruh commented Oct 6, 2020

Fix exception in case of not specified key file, but paramiko tries to use default one.

Exception: key cannot be used for signing
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/paramiko/transport.py", line 2109, in run
handler(self.auth_handler, m)
File "/usr/lib/python3/dist-packages/paramiko/auth_handler.py", line 298, in _parse_service_accept
sig = self.private_key.sign_ssh_data(blob)
File "/usr/lib/python3/dist-packages/paramiko/agent.py", line 418, in sign_ssh_data
raise SSHException("key cannot be used for signing")
paramiko.ssh_exception.SSHException: key cannot be used for signing

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

Successfully merging this pull request may close these issues.

1 participant