trac-github icon indicating copy to clipboard operation
trac-github copied to clipboard

private repo netrc instead of ssh keys

Open robertoschwald opened this issue 8 years ago • 1 comments

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.

robertoschwald avatar Mar 10 '17 17:03 robertoschwald

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.

aaugustin avatar Mar 10 '17 18:03 aaugustin