4

The idea is the following:

node.js in the application should be able to clone private github repositories using ssh. After User send his/her ssh key, the application could be able to clone his repository.

I think about using GIT_SSH variable to use multiple ssh keys. Can any one tell me how this could be implemented?

1
  • Please add code that you tried so that it can explain the description more. Commented Feb 7, 2017 at 18:01

1 Answer 1

6

You may want to reconsider the idea of users sending you their private SSH keys. I would be very surprised if anyone would do that.

What you can do instead is to use the GitHub API and deploy keys, that can be made read only. See:

For a good introduction on how you can access Git repos fron Node, see:

Examples in that article use NodeGit. It has excellent documentation on:

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.