How To Set Up a Private Git Server /srv/shiny-server

por | 27 febrero, 2018

CLIENT: Create the SSH Key Pair

ssh-keygen -C "[email protected]"

su -
useradd git
su git

mkdir ~/.ssh && touch ~/.ssh/authorized_keys

chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys

cat .ssh/id_rsa.pub | ssh [email protected] "cat >> ~/.ssh/authorized_keys"

[SERVER]
cd /srv/shiny-server

git init
echo "# shiny-server" >> README.md
git add --all
git commit -m "first commit"