realtorcas.blogg.se

Debian install git server
Debian install git server











Copy the ssh key to the server’s git directory:Ĭlient$ scp ~/.ssh/id_rsa.pub on server:.See documentation on ssh-keygen for full details. This should create a file called id_rsa.pub in your ~/.ssh directory. While not strictly required, it’s a good idea to add a passcode to the key when prompted during key creation. Add a user to the server that will hold the git repositories.Make sure sshd is running/listed when you do a ps.

debian install git server

Server$ sudo apt-get install openssh-server

debian install git server

  • Make sure ssh is installed on the server:.
  • Instead, if you follow the instructions in the optional part you can use individual user accounts and keep things more safe. While each user’s submissions will be labeled correctly in the git log, having everyone use the same system account isn’t safe computing practices for groups. The first way shown has all client users accessing the repository through the same server user account. There are two ways to set the git accounts up. I used bridged networking so each would get their own IP address, but that’s not required as long as the VM’s can communicate with each other over TCP/IP. I tested this on Ubuntu 16.04 by creating an Ubuntu virtual machine and then cloning it.

    debian install git server

    I found this setup handy when trying out some more complex git merging commands and experimenting with remotes while learning git. Here’s a complete guide that shows how to set up your own git server and git clients. This is sort of covered in other spots, but not as clearly and from scratch.













    Debian install git server