Title: Cred.sshKeyNew not working: Too many redirects or authentication replays · Issue #511 · nodegit/nodegit · GitHub
Open Graph Title: Cred.sshKeyNew not working: Too many redirects or authentication replays · Issue #511 · nodegit/nodegit
X Title: Cred.sshKeyNew not working: Too many redirects or authentication replays · Issue #511 · nodegit/nodegit
Description: Hello everyone, I am trying to automate pushing to a GitHub repository using NodeGit.Cred.sshKeyNew, but it looks like I am not able to get this working somehow. NodeGit.Cred.userpassPlaintextNew works just fine. This is what I have: })....
Open Graph Description: Hello everyone, I am trying to automate pushing to a GitHub repository using NodeGit.Cred.sshKeyNew, but it looks like I am not able to get this working somehow. NodeGit.Cred.userpassPlaintextNew w...
X Description: Hello everyone, I am trying to automate pushing to a GitHub repository using NodeGit.Cred.sshKeyNew, but it looks like I am not able to get this working somehow. NodeGit.Cred.userpassPlaintextNew w...
Opengraph URL: https://github.com/nodegit/nodegit/issues/511
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Cred.sshKeyNew not working: Too many redirects or authentication replays","articleBody":"Hello everyone,\n\nI am trying to automate pushing to a GitHub repository using `NodeGit.Cred.sshKeyNew`, but it looks like I am not able to get this working somehow. `NodeGit.Cred.userpassPlaintextNew` works just fine.\n\nThis is what I have:\n\n``` js\n}).then(function(remoteResult) {\n remote = remoteResult;\n remote.setCallbacks({\n credentials: function(url, userName) {\n return nodegit.Cred.sshKeyNew(\n userName,\n path.join(__dirname, \"..\", \"..\", \"data\", \"mykey-rsa.pub\"),\n path.join(__dirname, \"..\", \"..\", \"data\", \"mykey-rsa\"),\n \"myPass\"\n );\n }\n });\n return remote.connect(nodegit.Enums.DIRECTION.PUSH);\n})\n```\n\nWhich always results in: `Error: Too many redirects or authentication replays`.\n\nI did double check that:\n- paths to the public and private key files are correct\n- the key is properly installed on GitHub\n- the key has been generated with `ssh-keygen -t rsa`\n- the key's password is correct\n\nAm I doing something wrong there?\n","author":{"url":"https://github.com/dcodeIO","@type":"Person","name":"dcodeIO"},"datePublished":"2015-03-24T16:18:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/511/nodegit/issues/511"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:83519564-e3cc-fd23-1504-51f3b683ee3d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E0C6:257F3:7CCFC3B:AA5FE97:6A5E5FD5 |
| html-safe-nonce | 8d6af6c921cc4effa618138f2a00070259c2d5bf338e962da13fd7376095826c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMEM2OjI1N0YzOjdDQ0ZDM0I6QUE1RkU5Nzo2QTVFNUZENSIsInZpc2l0b3JfaWQiOiI2MjY1ODU5MTEzMzkxOTA2NzczIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 2d1a3ab047489a2b6d6a710824b211ef8db2a24c1272d04f25fba0958c68fc29 |
| hovercard-subject-tag | issue:64040009 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodegit/nodegit/511/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d11f232ba6c98cc96c2c6422bf143d0b39f8cd14e1b2981c10e297b93e61a482/nodegit/nodegit/issues/511 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d11f232ba6c98cc96c2c6422bf143d0b39f8cd14e1b2981c10e297b93e61a482/nodegit/nodegit/issues/511 |
| og:image:alt | Hello everyone, I am trying to automate pushing to a GitHub repository using NodeGit.Cred.sshKeyNew, but it looks like I am not able to get this working somehow. NodeGit.Cred.userpassPlaintextNew w... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dcodeIO |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5684292e6b02f9c72a31f9bc29d1fa47afbeda5424e76fb5f0b7c08766757177 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodegit/nodegit git https://github.com/nodegit/nodegit.git |
| octolytics-dimension-user_id | 657068 |
| octolytics-dimension-user_login | nodegit |
| octolytics-dimension-repository_id | 1383170 |
| octolytics-dimension-repository_nwo | nodegit/nodegit |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1383170 |
| octolytics-dimension-repository_network_root_nwo | nodegit/nodegit |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d151d247da13e8abadf6fd7f5a5f8659dae9a8d0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width