Repository navigation
Conversation
| Sign a blob of data with this private key, and return a `.Message` | ||
| representing an SSH signature message. | ||
|
|
||
| Use flags to sign using sha2-256 or sha2-512, default is sha1 |
There was a problem hiding this comment.
default is sha1 only for rsa keys, not for ecdsa or ed25519, right?
There was a problem hiding this comment.
Yes. flags are not defined for anything but ssh-rsa.
|
How might this be used? This seems like just one needed part, at least for a client with an rsa key for user auth. To auth with key, one calls Maybe the easier way to use this in paramiko, is to have the agent create 3 keys when it sees an rsa key, one for each hash algo variant. Each AgentKey reports its variant name, and automatically passes the appropriate flag to the agent when Just thinking out-loud ... |
|
I'm not looking for ssh authentication with this one. I just need to sign. Used here: |
|
I see. Anyway, this is a useful reference/hint for implementing SSH auth, thanks. |
|
See #1643 (though I ended up writing my own branch for this). Releasing soon. Thanks! |
No description provided.