on_private_key_needed Event
Asks the application for the client's private key.
Syntax
class SFTPClientPrivateKeyNeededEventParams(object): @property def skip() -> bool: ... @skip.setter def skip(value) -> None: ... # In class SFTPClient: @property def on_private_key_needed() -> Callable[[SFTPClientPrivateKeyNeededEventParams], None]: ... @on_private_key_needed.setter def on_private_key_needed(event_hook: Callable[[SFTPClientPrivateKeyNeededEventParams], None]) -> None: ...
Remarks
The class fires this event if the public key provided in key was accepted by the server, but no private key is available for it.
Use this event handler to attach the private key to your key. The component will pick the key up and continue the authentication.