SSH free login settings

report error

[email protected]: Permission denied (publickey). fatal: Could not read from remote repository

Configure SSH

  1. Enter in cmd:
ssh-keygen -t rsa -C 自己邮箱@qq.com

Enter all the way, the following results appear
insert image description here

  1. Find where your .ssh file is
    insert image description here
  2. After entering the .ssh file, find the id_rsa.pub file, check the content of the file, and copy the public key content in advance.
cat id_rsa.pub

insert image description here

  1. Enter your own GitHub account, open "Settings", find SSH keys
    insert image description here

  2. When creating a new SHH key, just add the previously copied public key
    insert image description here

  3. Result display
    insert image description here

Guess you like

Origin blog.csdn.net/qq_41714549/article/details/127583910