ssh-askpass-7.9p1

#### Beyond Linux® From Scratch - Version 2019-02-27

### Chapter 4. Security

- Prev

  Shadow-4.6

- Next

  stunnel-5.50

- Up
- Home

# ssh-askpass-7.9p1

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

### Package Information

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

- Download (FTP): ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-7.9p1.tar.gz

- Download MD5 sum: c6af50b7a474d04726a5aa747a5dce8f

- Download size: 1.5 MB

- Estimated disk space required: 8.6 MB

- Estimated build time: less than 0.1 SBU

### ssh-askpass Dependencies

#### Required

GTK+-2.24.32, Sudo-1.8.27 (runtime), Xorg Libraries, and X Window System (runtime)

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/ssh-askpass

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

## Configuring ssh-askpass

### Configuration Information

As the `root` user, configure Sudo-1.8.27 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: None
Installed Library: None
Installed Directory: /usr/libexec/openssh/contrib

Last updated on 2019-02-18 15:07:03 -0600

- Prev

  Shadow-4.6

- Next

  stunnel-5.50

- Up
- Home