StanfordSNR / guardian-agent

[beta] Guardian Agent: secure ssh-agent forwarding for Mosh and SSH
BSD 3-Clause "New" or "Revised" License
438 stars 30 forks source link

AskPassUI: honor environment variable SSH_ASKPASS #28

Closed juergenhoetzel closed 4 years ago

juergenhoetzel commented 4 years ago

On modern GNU/Linux distributions ssh-askpass is installed in libexecdir: Arch Linux x11-ssh-askpass

Users most likely setup this environment variable in their desktop environment:

SSH_ASKPASS=/usr/lib/ssh/ssh-askpass 

Fixes this issue for me:

execution denied by agent: Failed to get user approval: exec: "ssh-askpass": executable file not found in $PATH
dimakogan commented 4 years ago

Thanks for submitting this fix!