SshAskpass#
Superclasses: Object
When used as the setup function while spawning an ssh command like ssh-add or ssh, this allows callbacks for passwords on the provided interaction.
Constructors#
- class SshAskpass
- classmethod new(interaction: TlsInteraction) SshAskpass #
Create a new GcrSshAskpass object which can be used to spawn an ssh command and prompt for any necessary passwords.
Use the
child_setup()
function as a callback withspawn_sync()
,spawn_async()
orspawn_async_with_pipes()
.- Parameters:
interaction – the interaction to use for prompting paswords
Methods#
- class SshAskpass
- child_setup(askpass: None) None #
Use this function as a callback setup function passed to
spawn_sync()
,spawn_async()
,spawn_async_with_pipes()
.- Parameters:
askpass – a
SshAskpass
object
- get_interaction() TlsInteraction #
Get the interaction associated with this object.
Properties#
- class SshAskpass
- props.interaction: TlsInteraction#
The type of the None singleton.