git
Ssh

setting up ssh keys (linux and wsl)

Belajar GIT dari awal di PPTI Qodr. daftar sekarang (opens in a new tab)

generate new ssh key

ssh-keygen -t ed25519 -C "your_email@example.com"

ganti email dengan email yang digunakan di github / gitlab / bitbucket

then enter kabeh

start ssh-agent

eval "$(ssh-agent -s)"

add ssh key to ssh-agent

ssh-add ~/.ssh/id_ed25519

add ssh key to GitHub / gitlab / bitbucket

copy ssh key

cat ~/.ssh/id_ed25519.pub

paste to github / gitlab / bitbucket

setting > ssh and gpg keys > new ssh key, isi label, paste dari command cat ~/.ssh/id_ed25519.pub

test ssh connection

ssh -T git@<nama-provider>

contoh :

ssh -T git@github.com

kalo ada prompt Are you sure you want to continue connecting (yes/no)? ketik yes terus enter

done