Create SSH key first
ssh-keygen -t rsa -C "[email protected]"
When generating SSH keys, if you accidentally set the passphrase, you will be prompted Enter passphrase for key '/ C/users/gf115 /. SSH/ID every time git pull and git push are used to clone remote warehouses_ RSA '
, you need to manually enter the password every time to continue the operation. You can enter SSH keygen - P
on the command line to reset it. Enter directly. If it is blank, there will be no password
then add the public key in Git
here are the specific steps:
insert the ID in. SSH in drive C_ Ras.pub file can be copied to git public key
test it and find that you can clone files in a remote warehouse directly without a password