Introduction to ssh-askpass

The ssh-askpass is a generic executable name for many packages, with similar names, that provide a interactive X service to grab password for packages requiring administrative privileges to be run. It prompts the user with a window box where the necessary password can be inserted. Here, we choose Damien Miller's package distributed in the OpenSSH tarball.

This package is known to build and work properly using an LFS-7.5 platform.

Package Information

ssh-askpass Dependencies


GTK+-2.24.22, Sudo-1.8.9p5 (runtime), Xorg Libraries, and X Window System (runtime)

User Notes:

Installation of ssh-askpass

Install ssh-askpass by running the following commands:

cd contrib &&
make gnome-ssh-askpass2

Now, as the root user:

install -v -d -m755                  /usr/lib/openssh/contrib     &&
install -v -m755  gnome-ssh-askpass2 /usr/lib/openssh/contrib     &&
ln -sv -f contrib/gnome-ssh-askpass2 /usr/lib/openssh/ssh-askpass

The use of /usr/lib/openssh/contrib and a symlink is justified by the eventual necessity of a different program for that service.

Configuring ssh-askpass

Configuration Information

As the root user, configure Sudo-1.8.9p5 to use ssh-askpass:

cat >> /etc/sudo.conf << "EOF" &&
# Path to askpass helper program
Path askpass /usr/lib/openssh/ssh-askpass
chmod -v 0644 /etc/sudo.conf

If a given graphical <application> requires administrative privileges, use sudo -A <application> from an x-terminal, from a Window Manager menu and/or replace "Exec=<application> ..." by "Exec=sudo -A <application> ..." in the <application>.desktop file.


Installed Programs: ssh-askpass (symlink) and gnome-ssh-askpass2
Installed Library: None
Installed Directory: /usr/lib/openssh/contrib

Short Descriptions


is the program helper agent used to grab a password.


is a symlink to the program helper agent used to grab a password.

Last updated on 2014-02-20 04:20:28 -0800