Code cloud SSH mode clone code (Linux version)

Time:2020-5-22

Create sshkey

Run at terminalssh-keygen -t rsa -C "[email protected]"
Fill in the information according to the prompts, or leave it blank
After three times of enter, the content shown in the figure below is generated, that is, the generation is successful
Code cloud SSH mode clone code (Linux version)

View sshkey

cat ~/.ssh/id_rsa.pub
Code cloud SSH mode clone code (Linux version)

use

Copy the generated SSH key, and add the generated public key to the warehouse through the warehouse homepage Management > deployment public key management > Add deployment public key.
Code cloud SSH mode clone code (Linux version)

verification

ssh -T [email protected]
First use requires confirmation and addition of the host to the local SSH trusted list. If hi XXX! You’ve successfully authenticated, but Gitee.com Do not provide shell access. Content, then the addition is successful.
Code cloud SSH mode clone code (Linux version)
Code cloud SSH mode clone code (Linux version)

clone

git clone [email protected]

Please refer to the official website to generate / add SSH public key

Recommended Today

Python basics Chinese series tutorial · translation completed

Original: Python basics Python tutorial Protocol: CC by-nc-sa 4.0 Welcome anyone to participate and improve: a person can go very fast, but a group of people can go further. Online reading Apache CN learning resources catalog introduce Seven reasons to learn Python Why Python is great Learn Python introduction Executing Python scripts variable character string […]