
1. Tạo SSH key
ssh-keygen -t ed25519 -C "your_email@example.com"Get-Service -Name ssh-agent | Set-Service -StartupType Manual
Start-Service ssh-agentssh-add c:/Users/YOUR_USERNAME/.ssh/id_ed25519cat ~/.ssh/id_ed25519.pub | clipssh-keygen -t ed25519 -C "your_email@example.com"eval "$(ssh-agent -s)"cat /Users/YOUR_USERNAME/.ssh/id_ed25519.pub2. THÊM SSH KEY VÀO TÀI KHOẢN GIT
Truy cập Settings / SSH and GPG keys
Ở tab SSH keys ấn nút New SSH key

Truy cập Preferences / SSH Keys
Ấn nút Add new key

3. Kiểm tra kết nối
//Github
ssh -T git@github.com
//Gitlab
ssh -T git@gitlab.com
//Gitlab with custom domain
ssh -T git@customdomain.comShare this article
Share: