question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug: Have to enter ssh key passphrase multiple times

See original GitHub issue

The 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:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
distinctdancommented, Aug 4, 2020

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.

0reactions
JohannesHoppecommented, Dec 12, 2020

Many thanks for the help. 👍 I added an entry to the FAQ:

https://github.com/angular-schule/angular-cli-ghpages/wiki/FAQ

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found