Push to GitHub without a password using ssh-key

前端 未结 6 1621
青春惊慌失措
青春惊慌失措 2020-12-12 08:59

I generated an SSH key pair without a password and added the public key to GitHub.

Connection with

user@dev:/var/www/project# ssh -T git@github.com
H         


        
6条回答
  •  萌比男神i
    2020-12-12 09:25

    You have to use the SSH version, not HTTPS. When you clone from a repository, copy the link with the SSH version, because SSH is easy to use and solves all problems with access. You can set the access for every SSH you input into your account (like push, pull, clone, etc...)

    Here is a link, which says why we need SSH and how to use it: step by step

    Git Generate SSH Keys

提交回复
热议问题