Bug: Have to enter ssh key passphrase multiple times
See original GitHub issueThe ssh key password isn’t being cached when deploying, resulting in multiple prompts. This caused me to think that ghpages was broken and it took me a long time to figure out it was actually prompting multiple times. Here’s the output:
👨🚀 Uploading via git, please wait...
Enter passphrase for key '/Users/MyUser/.ssh/id_rsa':
Enter passphrase for key '/Users/MyUser/.ssh/id_rsa':
Enter passphrase for key '/Users/MyUser/.ssh/id_rsa':
🚀 Successfully published via angular-cli-ghpages! Have a nice day!
OSX version 10.14.6
angular-cli-ghpages version 0.6.2
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
ssh - How to avoid being asked passphrase each time I push ...
You need to use an ssh agent. Short answer: try $ ssh-add. before pushing. Supply your passphrase when asked. If you aren't already...
Read more >Git keeps asking me for my ssh key passphrase - Stack Overflow
This just runs ssh-agent and adds the key on every login. You still have to enter password each time you login. So for...
Read more >Enter SSH passphrase once - Ask Ubuntu
After upgrading to Ubuntu 13.10 that window doesn't appear anymore but a message in terminal appears: Enter passphrase for key '/home/username/.
Read more >macOS keeps asking my ssh passphrase since I updated to ...
First, if you have more SSH keys/identities added to your agent than you need—as shown with ssh-add -l then purge them all from...
Read more >Always asked for SSH Passphrase on git pull/push
Windows Service: 'OpenSSH Authentication Agent' is running with startup type: Automatic; the ssh key has been added to ssh-agent ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Ok, I think I understand why it’s happening, but regardless of the technical reasons, this is still a user experience bug because it acts broken. It really shouldn’t prompt more than once for the ssh password. There has to be a way to accomplish that because other applications are able to use git without repeated prompts. At the bare minimum, at least something should be added to the docs or better yet in the console output itself to warn that this is normal behavior.
Many thanks for the help. 👍 I added an entry to the FAQ:
https://github.com/angular-schule/angular-cli-ghpages/wiki/FAQ