Reworking KSSHAskPass

KDE has a little utility called ksshaskpass that is invoked by SSH to prompt the user for credentials. It can then store them in KDE Wallet so you don’t have to type them again next time. The other day I had to set up an elaborate SSH configuration with jump hosts and what not and found that it actually couldn’t handle some of the prompts I encountered along the way. A regular password prompt, nothing too fancy. The way an “SSH ask pass” program works is relatively simple: You point the SSH_ASKP