When I installed Baidu Apollo, I found that the download speed using https is relatively slow, and it is easy to fail. I saw the official recommendation to use ssh to download. The solution to the error related to using git ssh commands is as follows.
A few simple commands can be solved
ssh-keygen -t rsa -C "注册邮箱"
此步一直 enter 即可
After executing this step, keep entering, as shown in the figure below
接着执行
ssh -v [email protected]
此命令如果执行不成功则多执行几次即可,因为要接通giithub
The result after execution is shown in the figure, and the following figure shows success!
然后执行
ssh-agent -s
As shown in the figure, it indicates success
执行
ssh-add ~/.ssh/id_rsa
The generated public key has been placed in the directory shown in the figure below, and an Ubuntu computer is used here
Just copy the contents of the file and put it into gitee's ssh (in the settings of the gitee main interface), you can choose the title name at will, here use Key