:right-sidebar: True SshAskpass =================================================================== .. currentmodule:: gi.repository.Gcr .. class:: SshAskpass(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.GObject.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 ------------ .. rst-class:: interim-class .. class:: SshAskpass :no-index: .. classmethod:: new(interaction: ~gi.repository.Gio.TlsInteraction) -> ~gi.repository.Gcr.SshAskpass Create a new GcrSshAskpass object which can be used to spawn an ssh command and prompt for any necessary passwords. Use the :func:`~gi.repository.Gcr.SshAskpass.child_setup` function as a callback with :func:`~gi.repository.GLib.spawn_sync`, :func:`~gi.repository.GLib.spawn_async` or :func:`~gi.repository.GLib.spawn_async_with_pipes`. :param interaction: the interaction to use for prompting paswords Methods ------- .. rst-class:: interim-class .. class:: SshAskpass :no-index: .. classmethod:: child_setup() -> None Use this function as a callback setup function passed to :func:`~gi.repository.GLib.spawn_sync`, :func:`~gi.repository.GLib.spawn_async`, :func:`~gi.repository.GLib.spawn_async_with_pipes`. .. method:: get_interaction() -> ~gi.repository.Gio.TlsInteraction Get the interaction associated with this object. Properties ---------- .. rst-class:: interim-class .. class:: SshAskpass :no-index: .. attribute:: props.interaction :type: ~gi.repository.Gio.TlsInteraction The type of the None singleton.