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.9 platform.
This package is known to build properly using the gcc-6 compiler.
Download MD5 sum: 4d8547670e2a220d5ef805ad9e47acf2
Download size: 1.5 MB
Estimated disk space required: 8.2 MB
Estimated build time: less than 0.1 SBU
Install ssh-askpass by running the following commands:
cd contrib && make gnome-ssh-askpass2
Now, as the
install -v -d -m755 /usr/libexec/openssh/contrib && install -v -m755 gnome-ssh-askpass2 \ /usr/libexec/openssh/contrib && ln -sv -f contrib/gnome-ssh-askpass2 \ /usr/libexec/openssh/ssh-askpass
The use of /usr/libexec/openssh/contrib and a symlink is justified by the eventual necessity of a different program for that service.
root user, configure
Sudo-1.8.17p1 to use ssh-askpass:
cat >> /etc/sudo.conf << "EOF" &&
# Path to askpass helper program Path askpass /usr/libexec/openssh/ssh-askpassEOF 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.
Last updated on 2016-07-09 19:08:23 -0500