Ssh Signing
Utility for signing authentication data with local private keys.
Use from AuthHandler.onSignatureRequest when you have the private key available locally. For SSH agent forwarding, return the agent's response directly instead.
Functions
Link copied to clipboard
Encode a KeyPair's public key to an AuthPublicKey for use with AuthHandler.onPublicKeysNeeded.
Link copied to clipboard
Encode a PublicKey to its raw SSH wire-format public key blob.
Link copied to clipboard
fun getPublicKey(algorithmName: String, privateKeyData: ByteArray, passphrase: String?): AuthPublicKey
Extract the AuthPublicKey from a private key for use with AuthHandler.onPublicKeysNeeded.
Link copied to clipboard