Use gnome-ssh-askpass (gtk3 version).