ssh-askpass-10.5p1

#### Beyond Linux® From Scratch (System V Edition) - Version r13.0-1374

### Chapter 4. Security

- Prev

  Shadow-4.20.2

- Next

  stunnel-5.80

- Up
- Home

# ssh-askpass-10.5p1

## 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.

### Note

This version of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable version of the System V books.

### Package Information

- Download (HTTP): https://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-10.5p1.tar.gz

- Download MD5 sum: a95119f402dfa0166c9dd1237239085c

- Download size: 1.9 MB

- Estimated disk space required: 11 MB

- Estimated build time: less than 0.1 SBU

### ssh-askpass Dependencies

#### Required

GTK-3.24.52, Sudo-1.9.17p2 (runtime), Xorg Libraries, and a graphical environment (runtime)

## Installation of ssh-askpass

Install ssh-askpass by running the following commands:

    cd contrib &&
    make gnome-ssh-askpass3

Now, as the `root` user:

    install -v -d -m755                    /usr/libexec/openssh/contrib  &&
    install -v -m755    gnome-ssh-askpass3 /usr/libexec/openssh/contrib  &&
    ln -sv -f contrib/gnome-ssh-askpass3   /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.

## Configuring ssh-askpass

### Configuration Information

As the `root` user, configure Sudo-1.9.17p2 to use ssh-askpass:

    cat >> /etc/sudo.conf << "EOF" &&
    # Path to askpass helper program
    Path askpass /usr/libexec/openssh/ssh-askpass
    EOF
    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.

## Contents

Installed Programs: gnome-ssh-askpass3, ssh-askpass (symlink to `gnome-ssh-askpass3`)
Installed Library: None
Installed Directory: /usr/libexec/openssh/contrib

- Prev

  Shadow-4.20.2

- Next

  stunnel-5.80

- Up
- Home