Question

I am working on to install a private Git Server at my place, so that I can manage my repo locally on LAN. I installed the git-core on my server and its running on ubuntu.

I don't have much knowledge about the SSH. So I want to know on which system I should create a SSH key pair, on the client or server? And any further processes to make Git work in a client server model.

Was it helpful?

Solution

You generate the SSH key (which includes both a public and private key) on the client, then upload the public half to the server (so it can validate your identity; by knowing the public part of the key, the server can validate your identity by decrypting something encrypted with the private half), and keep the private half private. (usually that means protecting it with a passphrase)

See more information here, on the GitHub site. While that information is specific to GitHub, the process is going to be similar for any git server (or SSH, or any service utilizing SSH, for that matter). For instructions specific to Ubuntu, see this question on the Ask Ubuntu site.

OTHER TIPS

You can use gitosis to manage the server. Instructions on setup including ssh keys is here: https://wiki.archlinux.org/index.php/gitosis

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top