815 B
815 B
Git Config
Git
Install && Config
sudo apt update
sudo apt install git
sudo adduser \
--system \
--shell /bin/bash \
--gecos "Git Version Control" \
--group \
--disabled-password \
--home /home/git \
git
SSH
Install && Config
Linux
install
sudo apt update
sudo apt install git
sudo apt install openssh-client
config
ssh-keygen -t ed25519 -C "name@ssh.local"
copy and paste
cat ~/.ssh/id_ed25519.pub
copy to server
ssh-copy-id -p 22 root@<ip>
Error`s
SSH key
Cloning into '<repo>'...
repo@repo.local: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
cat ~/.ssh/id_ed25519.pub