:right-sidebar: True SshAskpass =================================================================== .. currentmodule:: gi.repository.Gcr .. class:: SshAskpass(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.GObject.Object` :Constructors: :: SshAskpass(**properties) new(interaction:Gio.TlsInteraction) -> Gcr.SshAskpass 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: .. method:: child_setup(askpass: None) -> 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`. :param askpass: a :obj:`~gi.repository.Gcr.SshAskpass` object .. 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 interaction used to prompt for passwords.