Support icon indicating copy to clipboard operation
Support copied to clipboard

SSH Key Passphrase support

Open yoiang opened this issue 5 years ago • 4 comments

I'm getting errors accessing my remote, the key I use has a passphrase and I was wondering if that may be the reason it wouldn't be working. If so are there plans to add support? Or is it something you'd be happy to take a PR for?

yoiang avatar Dec 21 '19 20:12 yoiang

Thanks @yoiang. GitFiend doesn't support this yet, but I think it's important and am looking into it now.

GitFiend avatar Dec 27 '19 04:12 GitFiend

After looking into this I've found that ssh passphrases are intended to be entered in a terminal window manually by a human (E.g. Not passed as a command line option, or stored on disk). This is by design.

To support ssh passphrases in GitFiend I would need to fool ssh into thinking a user entered the passphrase on the command line. I'm not sure this would be any more secure than just removing the passphrase.

GitFiend avatar Dec 28 '19 00:12 GitFiend

I gotcha. That's too bad, it would be great to have a safe 2fa style mechanism already built into git that could be employed by GUIs

yoiang avatar Dec 31 '19 21:12 yoiang

Yeah. I'll keep thinking about this problem.

Right now you should be able to do 2fa over https using personal access tokens, and I'm adding an option to use your system installed git instead of the inbuilt one, which might enable workarounds.

GitFiend avatar Jan 05 '20 00:01 GitFiend