trac-github
trac-github copied to clipboard
private repo netrc instead of ssh keys
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.
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.