Bug 2798

Summary: please consider providing a pre-invokcation hook
Product: Portable OpenSSH Reporter: Marc 'Zugschlus' Haber <mh+openssh-bugzilla>
Component: sshAssignee: Assigned to nobody <unassigned-bugs>
Status: CLOSED DUPLICATE    
Severity: enhancement CC: djm, r.friedwagner
Priority: P5    
Version: 7.6p1   
Hardware: All   
OS: All   

Description Marc 'Zugschlus' Haber 2017-11-02 19:33:40 AEDT
Hi,

please consider providing a configurable hook option (useable from .ssh/config and/or -o) to invoke a binary before the actual ssh processing begins. This could for example be used to load a certain key into the agent or to query the user for a PIN needed for the HSM (in case the used library doesn't go interactive).

It is of course possible to wrap ssh, but having ssh do this itself greatly reduces the attach surface of a wrapper's command line processing and doesn't require the user to remember to call the wrapper instead.

Greetings
Marc
Comment 1 Damien Miller 2018-04-06 14:02:13 AEST

*** This bug has been marked as a duplicate of bug 2824 ***
Comment 2 Damien Miller 2021-04-23 14:58:47 AEST
closing resolved bugs as of 8.6p1 release