Failed to pull code cloud project (Permission denied) Practical record of Xiaobai

Problem: Cannot pull code from code cloud, prompt: Permission denied

If you want to pull code from Code Cloud via ssh, then you must also add your own public key to the website

1linux obtains ssh public key

1.进入.ssh目录

cd ~/.ssh

2.查看此时下面的公钥

cat id_rsa.pub / vim id_rsa.pub

3.如果通过上面的方式找不到公钥,就要先生成公钥

ssh-keygen

4.默认路径,不设置密码

连续回车

2window系统获取公钥

 

3. Put the ssh public key in the code cloud and it is ok

 

Guess you like

Origin blog.csdn.net/h4241778/article/details/108685407