reza reza - 1 year ago 148
Git Question

git remote repository and ssh protocol

I have a git server and it has a user called git
For remote clients, they use [email protected] to clone, push and pull.
For this to work, I need to give the password for user git.

Is there a better way of dealing with this?

Answer Source

You can use ssh key for authentication. Each user make their own ssh key pair and then the public keys are collected inside ~/.ssh/authorized_keys of the git user. After this is set up, users don't need to enter nor know the password of the git user.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download