Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

private repo netrc instead of ssh keys #122

Open
robertoschwald opened this issue Mar 10, 2017 · 1 comment
Open

private repo netrc instead of ssh keys #122

robertoschwald opened this issue Mar 10, 2017 · 1 comment

Comments

@robertoschwald
Copy link

robertoschwald commented Mar 10, 2017

Just wanted to mention that it is not needed to create a ssh key for each private repo.

You can also use a .netrc file in the apache users home dir, by setting a generated token as the password. This way, you can even define logins for github.com or any other GitHub Enterprise installation:

machine github.com
login myghcomuser
password <ghcomtoken>

machine ghe.sample.local
login mygheuser
password <ghetoken>

Of course the permission of the .netrc file must be as tight as possible.

@aaugustin
Copy link
Contributor

I think it's safer to to put the plain text password in a file, but I'm not opposed to mentioning this possibility in the README.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants